forked from hashicorp/terraform-provider-google-beta
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprovider_model.go
225 lines (215 loc) · 17.7 KB
/
provider_model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package fwmodels
import (
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/types"
)
// ProviderModel maps provider schema data to a Go type.
// When the plugin-framework provider is configured, the Configure function receives data about
// the provider block in the configuration. That data is used to populate this struct.
type ProviderModel struct {
Credentials types.String `tfsdk:"credentials"`
AccessToken types.String `tfsdk:"access_token"`
ImpersonateServiceAccount types.String `tfsdk:"impersonate_service_account"`
ImpersonateServiceAccountDelegates types.List `tfsdk:"impersonate_service_account_delegates"`
Project types.String `tfsdk:"project"`
BillingProject types.String `tfsdk:"billing_project"`
Region types.String `tfsdk:"region"`
Zone types.String `tfsdk:"zone"`
Scopes types.List `tfsdk:"scopes"`
Batching types.List `tfsdk:"batching"`
UserProjectOverride types.Bool `tfsdk:"user_project_override"`
RequestTimeout types.String `tfsdk:"request_timeout"`
RequestReason types.String `tfsdk:"request_reason"`
UniverseDomain types.String `tfsdk:"universe_domain"`
DefaultLabels types.Map `tfsdk:"default_labels"`
AddTerraformAttributionLabel types.Bool `tfsdk:"add_terraform_attribution_label"`
TerraformAttributionLabelAdditionStrategy types.String `tfsdk:"terraform_attribution_label_addition_strategy"`
// Generated Products
AccessApprovalCustomEndpoint types.String `tfsdk:"access_approval_custom_endpoint"`
AccessContextManagerCustomEndpoint types.String `tfsdk:"access_context_manager_custom_endpoint"`
ActiveDirectoryCustomEndpoint types.String `tfsdk:"active_directory_custom_endpoint"`
AlloydbCustomEndpoint types.String `tfsdk:"alloydb_custom_endpoint"`
ApiGatewayCustomEndpoint types.String `tfsdk:"api_gateway_custom_endpoint"`
ApigeeCustomEndpoint types.String `tfsdk:"apigee_custom_endpoint"`
ApihubCustomEndpoint types.String `tfsdk:"apihub_custom_endpoint"`
AppEngineCustomEndpoint types.String `tfsdk:"app_engine_custom_endpoint"`
ApphubCustomEndpoint types.String `tfsdk:"apphub_custom_endpoint"`
ArtifactRegistryCustomEndpoint types.String `tfsdk:"artifact_registry_custom_endpoint"`
BackupDRCustomEndpoint types.String `tfsdk:"backup_dr_custom_endpoint"`
BeyondcorpCustomEndpoint types.String `tfsdk:"beyondcorp_custom_endpoint"`
BiglakeCustomEndpoint types.String `tfsdk:"biglake_custom_endpoint"`
BigQueryCustomEndpoint types.String `tfsdk:"big_query_custom_endpoint"`
BigqueryAnalyticsHubCustomEndpoint types.String `tfsdk:"bigquery_analytics_hub_custom_endpoint"`
BigqueryConnectionCustomEndpoint types.String `tfsdk:"bigquery_connection_custom_endpoint"`
BigqueryDatapolicyCustomEndpoint types.String `tfsdk:"bigquery_datapolicy_custom_endpoint"`
BigqueryDataTransferCustomEndpoint types.String `tfsdk:"bigquery_data_transfer_custom_endpoint"`
BigqueryReservationCustomEndpoint types.String `tfsdk:"bigquery_reservation_custom_endpoint"`
BigtableCustomEndpoint types.String `tfsdk:"bigtable_custom_endpoint"`
BillingCustomEndpoint types.String `tfsdk:"billing_custom_endpoint"`
BinaryAuthorizationCustomEndpoint types.String `tfsdk:"binary_authorization_custom_endpoint"`
BlockchainNodeEngineCustomEndpoint types.String `tfsdk:"blockchain_node_engine_custom_endpoint"`
CertificateManagerCustomEndpoint types.String `tfsdk:"certificate_manager_custom_endpoint"`
ChronicleCustomEndpoint types.String `tfsdk:"chronicle_custom_endpoint"`
CloudAssetCustomEndpoint types.String `tfsdk:"cloud_asset_custom_endpoint"`
CloudBuildCustomEndpoint types.String `tfsdk:"cloud_build_custom_endpoint"`
Cloudbuildv2CustomEndpoint types.String `tfsdk:"cloudbuildv2_custom_endpoint"`
ClouddeployCustomEndpoint types.String `tfsdk:"clouddeploy_custom_endpoint"`
ClouddomainsCustomEndpoint types.String `tfsdk:"clouddomains_custom_endpoint"`
CloudFunctionsCustomEndpoint types.String `tfsdk:"cloud_functions_custom_endpoint"`
Cloudfunctions2CustomEndpoint types.String `tfsdk:"cloudfunctions2_custom_endpoint"`
CloudIdentityCustomEndpoint types.String `tfsdk:"cloud_identity_custom_endpoint"`
CloudIdsCustomEndpoint types.String `tfsdk:"cloud_ids_custom_endpoint"`
CloudQuotasCustomEndpoint types.String `tfsdk:"cloud_quotas_custom_endpoint"`
CloudRunCustomEndpoint types.String `tfsdk:"cloud_run_custom_endpoint"`
CloudRunV2CustomEndpoint types.String `tfsdk:"cloud_run_v2_custom_endpoint"`
CloudSchedulerCustomEndpoint types.String `tfsdk:"cloud_scheduler_custom_endpoint"`
CloudTasksCustomEndpoint types.String `tfsdk:"cloud_tasks_custom_endpoint"`
ColabCustomEndpoint types.String `tfsdk:"colab_custom_endpoint"`
ComposerCustomEndpoint types.String `tfsdk:"composer_custom_endpoint"`
ComputeCustomEndpoint types.String `tfsdk:"compute_custom_endpoint"`
ContainerAnalysisCustomEndpoint types.String `tfsdk:"container_analysis_custom_endpoint"`
ContainerAttachedCustomEndpoint types.String `tfsdk:"container_attached_custom_endpoint"`
CoreBillingCustomEndpoint types.String `tfsdk:"core_billing_custom_endpoint"`
DatabaseMigrationServiceCustomEndpoint types.String `tfsdk:"database_migration_service_custom_endpoint"`
DataCatalogCustomEndpoint types.String `tfsdk:"data_catalog_custom_endpoint"`
DataformCustomEndpoint types.String `tfsdk:"dataform_custom_endpoint"`
DataFusionCustomEndpoint types.String `tfsdk:"data_fusion_custom_endpoint"`
DataLossPreventionCustomEndpoint types.String `tfsdk:"data_loss_prevention_custom_endpoint"`
DataPipelineCustomEndpoint types.String `tfsdk:"data_pipeline_custom_endpoint"`
DataplexCustomEndpoint types.String `tfsdk:"dataplex_custom_endpoint"`
DataprocCustomEndpoint types.String `tfsdk:"dataproc_custom_endpoint"`
DataprocGdcCustomEndpoint types.String `tfsdk:"dataproc_gdc_custom_endpoint"`
DataprocMetastoreCustomEndpoint types.String `tfsdk:"dataproc_metastore_custom_endpoint"`
DatastreamCustomEndpoint types.String `tfsdk:"datastream_custom_endpoint"`
DeploymentManagerCustomEndpoint types.String `tfsdk:"deployment_manager_custom_endpoint"`
DeveloperConnectCustomEndpoint types.String `tfsdk:"developer_connect_custom_endpoint"`
DialogflowCustomEndpoint types.String `tfsdk:"dialogflow_custom_endpoint"`
DialogflowCXCustomEndpoint types.String `tfsdk:"dialogflow_cx_custom_endpoint"`
DiscoveryEngineCustomEndpoint types.String `tfsdk:"discovery_engine_custom_endpoint"`
DNSCustomEndpoint types.String `tfsdk:"dns_custom_endpoint"`
DocumentAICustomEndpoint types.String `tfsdk:"document_ai_custom_endpoint"`
DocumentAIWarehouseCustomEndpoint types.String `tfsdk:"document_ai_warehouse_custom_endpoint"`
EdgecontainerCustomEndpoint types.String `tfsdk:"edgecontainer_custom_endpoint"`
EdgenetworkCustomEndpoint types.String `tfsdk:"edgenetwork_custom_endpoint"`
EssentialContactsCustomEndpoint types.String `tfsdk:"essential_contacts_custom_endpoint"`
EventarcCustomEndpoint types.String `tfsdk:"eventarc_custom_endpoint"`
FilestoreCustomEndpoint types.String `tfsdk:"filestore_custom_endpoint"`
FirebaseCustomEndpoint types.String `tfsdk:"firebase_custom_endpoint"`
FirebaseAppCheckCustomEndpoint types.String `tfsdk:"firebase_app_check_custom_endpoint"`
FirebaseAppHostingCustomEndpoint types.String `tfsdk:"firebase_app_hosting_custom_endpoint"`
FirebaseDatabaseCustomEndpoint types.String `tfsdk:"firebase_database_custom_endpoint"`
FirebaseDataConnectCustomEndpoint types.String `tfsdk:"firebase_data_connect_custom_endpoint"`
FirebaseExtensionsCustomEndpoint types.String `tfsdk:"firebase_extensions_custom_endpoint"`
FirebaseHostingCustomEndpoint types.String `tfsdk:"firebase_hosting_custom_endpoint"`
FirebaseStorageCustomEndpoint types.String `tfsdk:"firebase_storage_custom_endpoint"`
FirestoreCustomEndpoint types.String `tfsdk:"firestore_custom_endpoint"`
GeminiCustomEndpoint types.String `tfsdk:"gemini_custom_endpoint"`
GKEBackupCustomEndpoint types.String `tfsdk:"gke_backup_custom_endpoint"`
GKEHubCustomEndpoint types.String `tfsdk:"gke_hub_custom_endpoint"`
GKEHub2CustomEndpoint types.String `tfsdk:"gke_hub2_custom_endpoint"`
GkeonpremCustomEndpoint types.String `tfsdk:"gkeonprem_custom_endpoint"`
HealthcareCustomEndpoint types.String `tfsdk:"healthcare_custom_endpoint"`
IAM2CustomEndpoint types.String `tfsdk:"iam2_custom_endpoint"`
IAM3CustomEndpoint types.String `tfsdk:"iam3_custom_endpoint"`
IAMBetaCustomEndpoint types.String `tfsdk:"iam_beta_custom_endpoint"`
IAMWorkforcePoolCustomEndpoint types.String `tfsdk:"iam_workforce_pool_custom_endpoint"`
IapCustomEndpoint types.String `tfsdk:"iap_custom_endpoint"`
IdentityPlatformCustomEndpoint types.String `tfsdk:"identity_platform_custom_endpoint"`
IntegrationConnectorsCustomEndpoint types.String `tfsdk:"integration_connectors_custom_endpoint"`
IntegrationsCustomEndpoint types.String `tfsdk:"integrations_custom_endpoint"`
KMSCustomEndpoint types.String `tfsdk:"kms_custom_endpoint"`
LoggingCustomEndpoint types.String `tfsdk:"logging_custom_endpoint"`
LookerCustomEndpoint types.String `tfsdk:"looker_custom_endpoint"`
ManagedKafkaCustomEndpoint types.String `tfsdk:"managed_kafka_custom_endpoint"`
MemcacheCustomEndpoint types.String `tfsdk:"memcache_custom_endpoint"`
MemorystoreCustomEndpoint types.String `tfsdk:"memorystore_custom_endpoint"`
MigrationCenterCustomEndpoint types.String `tfsdk:"migration_center_custom_endpoint"`
MLEngineCustomEndpoint types.String `tfsdk:"ml_engine_custom_endpoint"`
MonitoringCustomEndpoint types.String `tfsdk:"monitoring_custom_endpoint"`
NetappCustomEndpoint types.String `tfsdk:"netapp_custom_endpoint"`
NetworkConnectivityCustomEndpoint types.String `tfsdk:"network_connectivity_custom_endpoint"`
NetworkManagementCustomEndpoint types.String `tfsdk:"network_management_custom_endpoint"`
NetworkSecurityCustomEndpoint types.String `tfsdk:"network_security_custom_endpoint"`
NetworkServicesCustomEndpoint types.String `tfsdk:"network_services_custom_endpoint"`
NotebooksCustomEndpoint types.String `tfsdk:"notebooks_custom_endpoint"`
OracleDatabaseCustomEndpoint types.String `tfsdk:"oracle_database_custom_endpoint"`
OrgPolicyCustomEndpoint types.String `tfsdk:"org_policy_custom_endpoint"`
OSConfigCustomEndpoint types.String `tfsdk:"os_config_custom_endpoint"`
OSConfigV2CustomEndpoint types.String `tfsdk:"os_config_v2_custom_endpoint"`
OSLoginCustomEndpoint types.String `tfsdk:"os_login_custom_endpoint"`
ParallelstoreCustomEndpoint types.String `tfsdk:"parallelstore_custom_endpoint"`
ParameterManagerCustomEndpoint types.String `tfsdk:"parameter_manager_custom_endpoint"`
ParameterManagerRegionalCustomEndpoint types.String `tfsdk:"parameter_manager_regional_custom_endpoint"`
PrivatecaCustomEndpoint types.String `tfsdk:"privateca_custom_endpoint"`
PrivilegedAccessManagerCustomEndpoint types.String `tfsdk:"privileged_access_manager_custom_endpoint"`
PublicCACustomEndpoint types.String `tfsdk:"public_ca_custom_endpoint"`
PubsubCustomEndpoint types.String `tfsdk:"pubsub_custom_endpoint"`
PubsubLiteCustomEndpoint types.String `tfsdk:"pubsub_lite_custom_endpoint"`
RedisCustomEndpoint types.String `tfsdk:"redis_custom_endpoint"`
ResourceManagerCustomEndpoint types.String `tfsdk:"resource_manager_custom_endpoint"`
RuntimeConfigCustomEndpoint types.String `tfsdk:"runtime_config_custom_endpoint"`
SecretManagerCustomEndpoint types.String `tfsdk:"secret_manager_custom_endpoint"`
SecretManagerRegionalCustomEndpoint types.String `tfsdk:"secret_manager_regional_custom_endpoint"`
SecureSourceManagerCustomEndpoint types.String `tfsdk:"secure_source_manager_custom_endpoint"`
SecurityCenterCustomEndpoint types.String `tfsdk:"security_center_custom_endpoint"`
SecurityCenterManagementCustomEndpoint types.String `tfsdk:"security_center_management_custom_endpoint"`
SecurityCenterV2CustomEndpoint types.String `tfsdk:"security_center_v2_custom_endpoint"`
SecuritypostureCustomEndpoint types.String `tfsdk:"securityposture_custom_endpoint"`
SecurityScannerCustomEndpoint types.String `tfsdk:"security_scanner_custom_endpoint"`
ServiceDirectoryCustomEndpoint types.String `tfsdk:"service_directory_custom_endpoint"`
ServiceManagementCustomEndpoint types.String `tfsdk:"service_management_custom_endpoint"`
ServiceNetworkingCustomEndpoint types.String `tfsdk:"service_networking_custom_endpoint"`
ServiceUsageCustomEndpoint types.String `tfsdk:"service_usage_custom_endpoint"`
SiteVerificationCustomEndpoint types.String `tfsdk:"site_verification_custom_endpoint"`
SourceRepoCustomEndpoint types.String `tfsdk:"source_repo_custom_endpoint"`
SpannerCustomEndpoint types.String `tfsdk:"spanner_custom_endpoint"`
SQLCustomEndpoint types.String `tfsdk:"sql_custom_endpoint"`
StorageCustomEndpoint types.String `tfsdk:"storage_custom_endpoint"`
StorageControlCustomEndpoint types.String `tfsdk:"storage_control_custom_endpoint"`
StorageInsightsCustomEndpoint types.String `tfsdk:"storage_insights_custom_endpoint"`
StorageTransferCustomEndpoint types.String `tfsdk:"storage_transfer_custom_endpoint"`
TagsCustomEndpoint types.String `tfsdk:"tags_custom_endpoint"`
TPUCustomEndpoint types.String `tfsdk:"tpu_custom_endpoint"`
TpuV2CustomEndpoint types.String `tfsdk:"tpu_v2_custom_endpoint"`
TranscoderCustomEndpoint types.String `tfsdk:"transcoder_custom_endpoint"`
VertexAICustomEndpoint types.String `tfsdk:"vertex_ai_custom_endpoint"`
VmwareengineCustomEndpoint types.String `tfsdk:"vmwareengine_custom_endpoint"`
VPCAccessCustomEndpoint types.String `tfsdk:"vpc_access_custom_endpoint"`
WorkbenchCustomEndpoint types.String `tfsdk:"workbench_custom_endpoint"`
WorkflowsCustomEndpoint types.String `tfsdk:"workflows_custom_endpoint"`
WorkstationsCustomEndpoint types.String `tfsdk:"workstations_custom_endpoint"`
// Handwritten Products / Versioned / Atypical Entries
CloudBillingCustomEndpoint types.String `tfsdk:"cloud_billing_custom_endpoint"`
ContainerCustomEndpoint types.String `tfsdk:"container_custom_endpoint"`
DataflowCustomEndpoint types.String `tfsdk:"dataflow_custom_endpoint"`
IamCredentialsCustomEndpoint types.String `tfsdk:"iam_credentials_custom_endpoint"`
ResourceManagerV3CustomEndpoint types.String `tfsdk:"resource_manager_v3_custom_endpoint"`
RuntimeconfigCustomEndpoint types.String `tfsdk:"runtimeconfig_custom_endpoint"`
IAMCustomEndpoint types.String `tfsdk:"iam_custom_endpoint"`
TagsLocationCustomEndpoint types.String `tfsdk:"tags_location_custom_endpoint"`
// dcl
ContainerAwsCustomEndpoint types.String `tfsdk:"container_aws_custom_endpoint"`
ContainerAzureCustomEndpoint types.String `tfsdk:"container_azure_custom_endpoint"`
// dcl generated
ApikeysCustomEndpoint types.String `tfsdk:"apikeys_custom_endpoint"`
AssuredWorkloadsCustomEndpoint types.String `tfsdk:"assured_workloads_custom_endpoint"`
CloudBuildWorkerPoolCustomEndpoint types.String `tfsdk:"cloud_build_worker_pool_custom_endpoint"`
CloudResourceManagerCustomEndpoint types.String `tfsdk:"cloud_resource_manager_custom_endpoint"`
FirebaserulesCustomEndpoint types.String `tfsdk:"firebaserules_custom_endpoint"`
RecaptchaEnterpriseCustomEndpoint types.String `tfsdk:"recaptcha_enterprise_custom_endpoint"`
GkehubFeatureCustomEndpoint types.String `tfsdk:"gkehub_feature_custom_endpoint"`
}
type ProviderBatching struct {
SendAfter types.String `tfsdk:"send_after"`
EnableBatching types.Bool `tfsdk:"enable_batching"`
}
var ProviderBatchingAttributes = map[string]attr.Type{
"send_after": types.StringType,
"enable_batching": types.BoolType,
}
// ProviderMetaModel describes the provider meta model
type ProviderMetaModel struct {
ModuleName types.String `tfsdk:"module_name"`
}