|
| 1 | +package fwmodels |
| 2 | + |
| 3 | +import ( |
| 4 | + "github.com/hashicorp/terraform-plugin-framework/attr" |
| 5 | + "github.com/hashicorp/terraform-plugin-framework/types" |
| 6 | +) |
| 7 | + |
| 8 | +// ProviderModel describes the provider config data model. |
| 9 | +type ProviderModel struct { |
| 10 | + Credentials types.String `tfsdk:"credentials"` |
| 11 | + AccessToken types.String `tfsdk:"access_token"` |
| 12 | + ImpersonateServiceAccount types.String `tfsdk:"impersonate_service_account"` |
| 13 | + ImpersonateServiceAccountDelegates types.List `tfsdk:"impersonate_service_account_delegates"` |
| 14 | + Project types.String `tfsdk:"project"` |
| 15 | + BillingProject types.String `tfsdk:"billing_project"` |
| 16 | + Region types.String `tfsdk:"region"` |
| 17 | + Zone types.String `tfsdk:"zone"` |
| 18 | + Scopes types.List `tfsdk:"scopes"` |
| 19 | + Batching types.List `tfsdk:"batching"` |
| 20 | + UserProjectOverride types.Bool `tfsdk:"user_project_override"` |
| 21 | + RequestTimeout types.String `tfsdk:"request_timeout"` |
| 22 | + RequestReason types.String `tfsdk:"request_reason"` |
| 23 | + UniverseDomain types.String `tfsdk:"universe_domain"` |
| 24 | + DefaultLabels types.Map `tfsdk:"default_labels"` |
| 25 | + AddTerraformAttributionLabel types.Bool `tfsdk:"add_terraform_attribution_label"` |
| 26 | + TerraformAttributionLabelAdditionStrategy types.String `tfsdk:"terraform_attribution_label_addition_strategy"` |
| 27 | + |
| 28 | + // Generated Products |
| 29 | +{{- range $product := $.Products }} |
| 30 | + {{ $product.Name }}CustomEndpoint types.String `tfsdk:"{{ underscore $product.Name }}_custom_endpoint"` |
| 31 | +{{- end }} |
| 32 | + |
| 33 | + // Handwritten Products / Versioned / Atypical Entries |
| 34 | + CloudBillingCustomEndpoint types.String `tfsdk:"cloud_billing_custom_endpoint"` |
| 35 | + ContainerCustomEndpoint types.String `tfsdk:"container_custom_endpoint"` |
| 36 | + DataflowCustomEndpoint types.String `tfsdk:"dataflow_custom_endpoint"` |
| 37 | + IamCredentialsCustomEndpoint types.String `tfsdk:"iam_credentials_custom_endpoint"` |
| 38 | + ResourceManagerV3CustomEndpoint types.String `tfsdk:"resource_manager_v3_custom_endpoint"` |
| 39 | +{{- if ne $.TargetVersionName "ga" }} |
| 40 | + RuntimeconfigCustomEndpoint types.String `tfsdk:"runtimeconfig_custom_endpoint"` |
| 41 | +{{- end }} |
| 42 | + IAMCustomEndpoint types.String `tfsdk:"iam_custom_endpoint"` |
| 43 | + TagsLocationCustomEndpoint types.String `tfsdk:"tags_location_custom_endpoint"` |
| 44 | + |
| 45 | + // dcl |
| 46 | + ContainerAwsCustomEndpoint types.String `tfsdk:"container_aws_custom_endpoint"` |
| 47 | + ContainerAzureCustomEndpoint types.String `tfsdk:"container_azure_custom_endpoint"` |
| 48 | + |
| 49 | + // dcl generated |
| 50 | + ApikeysCustomEndpoint types.String `tfsdk:"apikeys_custom_endpoint"` |
| 51 | + AssuredWorkloadsCustomEndpoint types.String `tfsdk:"assured_workloads_custom_endpoint"` |
| 52 | + CloudBuildWorkerPoolCustomEndpoint types.String `tfsdk:"cloud_build_worker_pool_custom_endpoint"` |
| 53 | + CloudResourceManagerCustomEndpoint types.String `tfsdk:"cloud_resource_manager_custom_endpoint"` |
| 54 | + EventarcCustomEndpoint types.String `tfsdk:"eventarc_custom_endpoint"` |
| 55 | + FirebaserulesCustomEndpoint types.String `tfsdk:"firebaserules_custom_endpoint"` |
| 56 | + RecaptchaEnterpriseCustomEndpoint types.String `tfsdk:"recaptcha_enterprise_custom_endpoint"` |
| 57 | + |
| 58 | + GkehubFeatureCustomEndpoint types.String `tfsdk:"gkehub_feature_custom_endpoint"` |
| 59 | +} |
| 60 | + |
| 61 | +type ProviderBatching struct { |
| 62 | + SendAfter types.String `tfsdk:"send_after"` |
| 63 | + EnableBatching types.Bool `tfsdk:"enable_batching"` |
| 64 | +} |
| 65 | + |
| 66 | +var ProviderBatchingAttributes = map[string]attr.Type{ |
| 67 | + "send_after": types.StringType, |
| 68 | + "enable_batching": types.BoolType, |
| 69 | +} |
| 70 | + |
| 71 | +// ProviderMetaModel describes the provider meta model |
| 72 | +type ProviderMetaModel struct { |
| 73 | + ModuleName types.String `tfsdk:"module_name"` |
| 74 | +} |
0 commit comments