Skip to content

Commit

Permalink
Merge pull request #279 from dbt-labs/TFPCLD-18
Browse files Browse the repository at this point in the history
Chore: Removed all IDE warnings
  • Loading branch information
chasewalden authored Jul 24, 2024
2 parents 32eac30 + c28e784 commit 4673ab7
Show file tree
Hide file tree
Showing 38 changed files with 316 additions and 312 deletions.
6 changes: 3 additions & 3 deletions pkg/sdkv2/data_sources/azure_dev_ops_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import (
)

var azureDevOpsProjectSchema = map[string]*schema.Schema{
"id": &schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
Description: "The internal Azure Dev Ops ID of the ADO Project",
},
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Description: "The name of the ADO project",
},
"url": &schema.Schema{
"url": {
Type: schema.TypeString,
Computed: true,
Description: "The URL of the ADO project",
Expand Down
14 changes: 7 additions & 7 deletions pkg/sdkv2/data_sources/azure_dev_ops_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@ import (
)

var azureDevOpsRepositorySchema = map[string]*schema.Schema{
"id": &schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
Description: "The internal Azure Dev Ops ID of the ADO Repository",
},
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Description: "The name of the ADO repository",
},
"azure_dev_ops_project_id": &schema.Schema{
"azure_dev_ops_project_id": {
Type: schema.TypeString,
Required: true,
Description: "The internal Azure Dev Ops ID of the ADO Project. Can be retrieved using the data source dbtcloud_azure_dev_ops_project and the project name",
},
"details_url": &schema.Schema{
"details_url": {
Type: schema.TypeString,
Computed: true,
Description: "The URL of the ADO repository showing details about the repository and its attributes",
},
"remote_url": &schema.Schema{
"remote_url": {
Type: schema.TypeString,
Computed: true,
Description: "The HTTP URL of the ADO repository used to connect to dbt Cloud",
},
"web_url": &schema.Schema{
"web_url": {
Type: schema.TypeString,
Computed: true,
Description: "The URL of the ADO repository accessible in the browser",
},
"default_branch": &schema.Schema{
"default_branch": {
Type: schema.TypeString,
Computed: true,
Description: "The default branch of the ADO repository",
Expand Down
48 changes: 24 additions & 24 deletions pkg/sdkv2/data_sources/bigquery_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,123 +11,123 @@ import (
)

var bigQueryConnectionSchema = map[string]*schema.Schema{
"connection_id": &schema.Schema{
"connection_id": {
Type: schema.TypeInt,
Required: true,
Description: "Connection Identifier",
},
"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeInt,
Required: true,
Description: "Project ID to create the connection in",
},
"is_active": &schema.Schema{
"is_active": {
Type: schema.TypeBool,
Computed: true,
Description: "Whether the connection is active",
},
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
Description: "Connection name",
},
"type": &schema.Schema{
"type": {
Type: schema.TypeString,
Computed: true,
Description: "The type of connection",
},
// field in details
"gcp_project_id": &schema.Schema{
"gcp_project_id": {
Type: schema.TypeString,
Computed: true,
Description: "GCP project ID",
},
"timeout_seconds": &schema.Schema{
"timeout_seconds": {
Type: schema.TypeInt,
Computed: true,
Description: "Timeout in seconds for queries",
},
"private_key_id": &schema.Schema{
"private_key_id": {
Type: schema.TypeString,
Computed: true,
Description: "Private key ID of the Service Account",
},
"private_key": &schema.Schema{
"private_key": {
Type: schema.TypeString,
Computed: true,
Description: "Private key of the Service Account",
},
"client_email": &schema.Schema{
"client_email": {
Type: schema.TypeString,
Computed: true,
Description: "Service Account email",
},
"client_id": &schema.Schema{
"client_id": {
Type: schema.TypeString,
Computed: true,
Description: "Client ID of the Service Account",
},
"auth_uri": &schema.Schema{
"auth_uri": {
Type: schema.TypeString,
Computed: true,
Description: "Auth URI for the Service Account",
},
"token_uri": &schema.Schema{
"token_uri": {
Type: schema.TypeString,
Computed: true,
Description: "Token URI for the Service Account",
},
"auth_provider_x509_cert_url": &schema.Schema{
"auth_provider_x509_cert_url": {
Type: schema.TypeString,
Computed: true,
Description: "Auth Provider X509 Cert URL for the Service Account",
},
"client_x509_cert_url": &schema.Schema{
"client_x509_cert_url": {
Type: schema.TypeString,
Computed: true,
Description: "Client X509 Cert URL for the Service Account",
},
"retries": &schema.Schema{
"retries": {
Type: schema.TypeInt,
Computed: true,
Description: "Number of retries for queries",
},
"location": &schema.Schema{
"location": {
Type: schema.TypeString,
Computed: true,
Description: "Location to create new Datasets in",
},
"maximum_bytes_billed": &schema.Schema{
"maximum_bytes_billed": {
Type: schema.TypeInt,
Computed: true,
Description: "Max number of bytes that can be billed for a given BigQuery query",
},
"execution_project": &schema.Schema{
"execution_project": {
Type: schema.TypeString,
Computed: true,
Description: "Project to bill for query execution",
},
"priority": &schema.Schema{
"priority": {
Type: schema.TypeString,
Computed: true,
Description: "The priority with which to execute BigQuery queries",
},
"gcs_bucket": &schema.Schema{
"gcs_bucket": {
Type: schema.TypeString,
Computed: true,
Description: "URI for a Google Cloud Storage bucket to host Python code executed via Datapro",
},
"dataproc_region": &schema.Schema{
"dataproc_region": {
Type: schema.TypeString,
Computed: true,
Description: "Google Cloud region for PySpark workloads on Dataproc",
},
"dataproc_cluster_name": &schema.Schema{
"dataproc_cluster_name": {
Type: schema.TypeString,
Computed: true,
Description: "Dataproc cluster name for PySpark workloads",
},
"is_configured_for_oauth": &schema.Schema{
"is_configured_for_oauth": {
Type: schema.TypeBool,
Computed: true,
Description: "Whether the connection is configured for OAuth or not",
Expand Down
10 changes: 5 additions & 5 deletions pkg/sdkv2/data_sources/bigquery_credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ import (
)

var bigqueryCredentialSchema = map[string]*schema.Schema{
"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeInt,
Required: true,
Description: "Project ID",
},
"credential_id": &schema.Schema{
"credential_id": {
Type: schema.TypeInt,
Required: true,
Description: "Credential ID",
},
"is_active": &schema.Schema{
"is_active": {
Type: schema.TypeBool,
Computed: true,
Description: "Whether the BigQuery credential is active",
},
"dataset": &schema.Schema{
"dataset": {
Type: schema.TypeString,
Computed: true,
Description: "Default dataset name",
},
"num_threads": &schema.Schema{
"num_threads": {
Type: schema.TypeInt,
Computed: true,
Description: "Number of threads to use",
Expand Down
24 changes: 12 additions & 12 deletions pkg/sdkv2/data_sources/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,62 @@ import (
)

var connectionSchema = map[string]*schema.Schema{
"connection_id": &schema.Schema{
"connection_id": {
Type: schema.TypeInt,
Required: true,
Description: "ID for the connection",
},
"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeInt,
Required: true,
Description: "Project ID to create the connection in",
},
"is_active": &schema.Schema{
"is_active": {
Type: schema.TypeBool,
Computed: true,
Description: "Whether the connection is active",
},
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
Description: "Connection name",
},
"type": &schema.Schema{
"type": {
Type: schema.TypeString,
Computed: true,
Description: "Connection type",
},
"private_link_endpoint_id": &schema.Schema{
"private_link_endpoint_id": {
Type: schema.TypeString,
Computed: true,
Description: "The ID of the PrivateLink connection",
},
"account": &schema.Schema{
"account": {
Type: schema.TypeString,
Computed: true,
Description: "Account for the connection",
},
"database": &schema.Schema{
"database": {
Type: schema.TypeString,
Computed: true,
Description: "Database name for the connection",
},
"warehouse": &schema.Schema{
"warehouse": {
Type: schema.TypeString,
Computed: true,
Description: "Warehouse name for the connection",
},
"role": &schema.Schema{
"role": {
Type: schema.TypeString,
Computed: true,
Description: "Role name for the connection",
},
"allow_sso": &schema.Schema{
"allow_sso": {
Type: schema.TypeBool,
Computed: true,
Description: "Flag for whether or not to use SSO for the connection",
},
"allow_keep_alive": &schema.Schema{
"allow_keep_alive": {
Type: schema.TypeBool,
Computed: true,
Description: "Flag for whether or not to use the keep session alive parameter in the connection",
Expand Down
14 changes: 7 additions & 7 deletions pkg/sdkv2/data_sources/databricks_credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ import (
)

var databricksCredentialSchema = map[string]*schema.Schema{
"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeInt,
Required: true,
Description: "Project ID",
},
"credential_id": &schema.Schema{
"credential_id": {
Type: schema.TypeInt,
Required: true,
Description: "Credential ID",
},
"adapter_id": &schema.Schema{
"adapter_id": {
Type: schema.TypeInt,
Computed: true,
Description: "Databricks adapter ID for the credential",
},
"target_name": &schema.Schema{
"target_name": {
Type: schema.TypeString,
Computed: true,
Description: "Target name",
},
"num_threads": &schema.Schema{
"num_threads": {
Type: schema.TypeInt,
Computed: true,
Description: "Number of threads to use",
},
"catalog": &schema.Schema{
"catalog": {
Type: schema.TypeString,
Computed: true,
Description: "The catalog where to create models",
},
"schema": &schema.Schema{
"schema": {
Type: schema.TypeString,
Computed: true,
Description: "The schema where to create models",
Expand Down
6 changes: 3 additions & 3 deletions pkg/sdkv2/data_sources/environment_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
)

var environmentVariableSchema = map[string]*schema.Schema{
"project_id": &schema.Schema{
"project_id": {
Type: schema.TypeInt,
Required: true,
Description: "Project ID the variable exists in",
},
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Description: "Name for the variable",
},
"environment_values": &schema.Schema{
"environment_values": {
Type: schema.TypeMap,
Computed: true,
Description: "Map containing the environment variables",
Expand Down
Loading

0 comments on commit 4673ab7

Please sign in to comment.