@@ -67,6 +67,33 @@ var CloudResourceManagerEndpointEntry = &schema.Schema{
6767 }, "" ),
6868}
6969
70+ var ComputeEndpointEntryKey = "compute_custom_endpoint"
71+ var ComputeEndpointEntry = & schema.Schema {
72+ Type : schema .TypeString ,
73+ Optional : true ,
74+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
75+ "GOOGLE_COMPUTE_CUSTOM_ENDPOINT" ,
76+ }, "" ),
77+ }
78+
79+ var ContainerAwsEndpointEntryKey = "container_aws_custom_endpoint"
80+ var ContainerAwsEndpointEntry = & schema.Schema {
81+ Type : schema .TypeString ,
82+ Optional : true ,
83+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
84+ "GOOGLE_CONTAINER_AWS_CUSTOM_ENDPOINT" ,
85+ }, "" ),
86+ }
87+
88+ var ContainerAzureEndpointEntryKey = "container_azure_custom_endpoint"
89+ var ContainerAzureEndpointEntry = & schema.Schema {
90+ Type : schema .TypeString ,
91+ Optional : true ,
92+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
93+ "GOOGLE_CONTAINER_AZURE_CUSTOM_ENDPOINT" ,
94+ }, "" ),
95+ }
96+
7097var DataplexEndpointEntryKey = "dataplex_custom_endpoint"
7198var DataplexEndpointEntry = & schema.Schema {
7299 Type : schema .TypeString ,
@@ -94,6 +121,24 @@ var FirebaserulesEndpointEntry = &schema.Schema{
94121 }, "" ),
95122}
96123
124+ var LoggingEndpointEntryKey = "logging_custom_endpoint"
125+ var LoggingEndpointEntry = & schema.Schema {
126+ Type : schema .TypeString ,
127+ Optional : true ,
128+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
129+ "GOOGLE_LOGGING_CUSTOM_ENDPOINT" ,
130+ }, "" ),
131+ }
132+
133+ var MonitoringEndpointEntryKey = "monitoring_custom_endpoint"
134+ var MonitoringEndpointEntry = & schema.Schema {
135+ Type : schema .TypeString ,
136+ Optional : true ,
137+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
138+ "GOOGLE_MONITORING_CUSTOM_ENDPOINT" ,
139+ }, "" ),
140+ }
141+
97142var NetworkConnectivityEndpointEntryKey = "network_connectivity_custom_endpoint"
98143var NetworkConnectivityEndpointEntry = & schema.Schema {
99144 Type : schema .TypeString ,
@@ -112,6 +157,24 @@ var OrgPolicyEndpointEntry = &schema.Schema{
112157 }, "" ),
113158}
114159
160+ var OSConfigEndpointEntryKey = "os_config_custom_endpoint"
161+ var OSConfigEndpointEntry = & schema.Schema {
162+ Type : schema .TypeString ,
163+ Optional : true ,
164+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
165+ "GOOGLE_OS_CONFIG_CUSTOM_ENDPOINT" ,
166+ }, "" ),
167+ }
168+
169+ var PrivatecaEndpointEntryKey = "privateca_custom_endpoint"
170+ var PrivatecaEndpointEntry = & schema.Schema {
171+ Type : schema .TypeString ,
172+ Optional : true ,
173+ DefaultFunc : schema .MultiEnvDefaultFunc ([]string {
174+ "GOOGLE_PRIVATECA_CUSTOM_ENDPOINT" ,
175+ }, "" ),
176+ }
177+
115178var RecaptchaEnterpriseEndpointEntryKey = "recaptcha_enterprise_custom_endpoint"
116179var RecaptchaEnterpriseEndpointEntry = & schema.Schema {
117180 Type : schema .TypeString ,
@@ -121,46 +184,62 @@ var RecaptchaEnterpriseEndpointEntry = &schema.Schema{
121184 }, "" ),
122185}
123186
124- type DCLConfig struct {
125- ApikeysBasePath string
126- AssuredWorkloadsBasePath string
127- CloudBuildWorkerPoolBasePath string
128- ClouddeployBasePath string
129- CloudResourceManagerBasePath string
130- DataplexBasePath string
131- EventarcBasePath string
132- FirebaserulesBasePath string
133- NetworkConnectivityBasePath string
134- OrgPolicyBasePath string
135- RecaptchaEnterpriseBasePath string
136- }
137-
138- func configureDCLProvider (provider * schema.Provider ) {
139- provider .Schema [ApikeysEndpointEntryKey ] = ApikeysEndpointEntry
140- provider .Schema [AssuredWorkloadsEndpointEntryKey ] = AssuredWorkloadsEndpointEntry
141- provider .Schema [CloudBuildWorkerPoolEndpointEntryKey ] = CloudBuildWorkerPoolEndpointEntry
142- provider .Schema [ClouddeployEndpointEntryKey ] = ClouddeployEndpointEntry
143- provider .Schema [CloudResourceManagerEndpointEntryKey ] = CloudResourceManagerEndpointEntry
144- provider .Schema [DataplexEndpointEntryKey ] = DataplexEndpointEntry
145- provider .Schema [EventarcEndpointEntryKey ] = EventarcEndpointEntry
146- provider .Schema [FirebaserulesEndpointEntryKey ] = FirebaserulesEndpointEntry
147- provider .Schema [NetworkConnectivityEndpointEntryKey ] = NetworkConnectivityEndpointEntry
148- provider .Schema [OrgPolicyEndpointEntryKey ] = OrgPolicyEndpointEntry
149- provider .Schema [RecaptchaEnterpriseEndpointEntryKey ] = RecaptchaEnterpriseEndpointEntry
150- }
151-
152- func providerDCLConfigure (d * schema.ResourceData , config * Config ) interface {} {
153- config .ApikeysBasePath = d .Get (ApikeysEndpointEntryKey ).(string )
154- config .AssuredWorkloadsBasePath = d .Get (AssuredWorkloadsEndpointEntryKey ).(string )
155- config .CloudBuildWorkerPoolBasePath = d .Get (CloudBuildWorkerPoolEndpointEntryKey ).(string )
156- config .ClouddeployBasePath = d .Get (ClouddeployEndpointEntryKey ).(string )
157- config .CloudResourceManagerBasePath = d .Get (CloudResourceManagerEndpointEntryKey ).(string )
158- config .DataplexBasePath = d .Get (DataplexEndpointEntryKey ).(string )
159- config .EventarcBasePath = d .Get (EventarcEndpointEntryKey ).(string )
160- config .FirebaserulesBasePath = d .Get (FirebaserulesEndpointEntryKey ).(string )
161- config .NetworkConnectivityBasePath = d .Get (NetworkConnectivityEndpointEntryKey ).(string )
162- config .OrgPolicyBasePath = d .Get (OrgPolicyEndpointEntryKey ).(string )
163- config .RecaptchaEnterpriseBasePath = d .Get (RecaptchaEnterpriseEndpointEntryKey ).(string )
164- config .CloudBuildWorkerPoolBasePath = d .Get (CloudBuildWorkerPoolEndpointEntryKey ).(string )
165- return config
166- }
187+ //Add new values to config.go.erb config object declaration
188+ //ApikeysBasePath string
189+ //AssuredWorkloadsBasePath string
190+ //CloudBuildWorkerPoolBasePath string
191+ //ClouddeployBasePath string
192+ //CloudResourceManagerBasePath string
193+ //ComputeBasePath string
194+ //ContainerAwsBasePath string
195+ //ContainerAzureBasePath string
196+ //DataplexBasePath string
197+ //EventarcBasePath string
198+ //FirebaserulesBasePath string
199+ //LoggingBasePath string
200+ //MonitoringBasePath string
201+ //NetworkConnectivityBasePath string
202+ //OrgPolicyBasePath string
203+ //OSConfigBasePath string
204+ //PrivatecaBasePath string
205+ //RecaptchaEnterpriseBasePath string
206+
207+ //Add new values to provider.go.erb schema initialization
208+ // ApikeysEndpointEntryKey: ApikeysEndpointEntry,
209+ // AssuredWorkloadsEndpointEntryKey: AssuredWorkloadsEndpointEntry,
210+ // CloudBuildWorkerPoolEndpointEntryKey: CloudBuildWorkerPoolEndpointEntry,
211+ // ClouddeployEndpointEntryKey: ClouddeployEndpointEntry,
212+ // CloudResourceManagerEndpointEntryKey: CloudResourceManagerEndpointEntry,
213+ // ComputeEndpointEntryKey: ComputeEndpointEntry,
214+ // ContainerAwsEndpointEntryKey: ContainerAwsEndpointEntry,
215+ // ContainerAzureEndpointEntryKey: ContainerAzureEndpointEntry,
216+ // DataplexEndpointEntryKey: DataplexEndpointEntry,
217+ // EventarcEndpointEntryKey: EventarcEndpointEntry,
218+ // FirebaserulesEndpointEntryKey: FirebaserulesEndpointEntry,
219+ // LoggingEndpointEntryKey: LoggingEndpointEntry,
220+ // MonitoringEndpointEntryKey: MonitoringEndpointEntry,
221+ // NetworkConnectivityEndpointEntryKey: NetworkConnectivityEndpointEntry,
222+ // OrgPolicyEndpointEntryKey: OrgPolicyEndpointEntry,
223+ // OSConfigEndpointEntryKey: OSConfigEndpointEntry,
224+ // PrivatecaEndpointEntryKey: PrivatecaEndpointEntry,
225+ // RecaptchaEnterpriseEndpointEntryKey: RecaptchaEnterpriseEndpointEntry,
226+
227+ //Add new values to provider.go.erb - provider block read
228+ // config.ApikeysBasePath = d.Get(ApikeysEndpointEntryKey).(string)
229+ // config.AssuredWorkloadsBasePath = d.Get(AssuredWorkloadsEndpointEntryKey).(string)
230+ // config.CloudBuildWorkerPoolBasePath = d.Get(CloudBuildWorkerPoolEndpointEntryKey).(string)
231+ // config.ClouddeployBasePath = d.Get(ClouddeployEndpointEntryKey).(string)
232+ // config.CloudResourceManagerBasePath = d.Get(CloudResourceManagerEndpointEntryKey).(string)
233+ // config.ComputeBasePath = d.Get(ComputeEndpointEntryKey).(string)
234+ // config.ContainerAwsBasePath = d.Get(ContainerAwsEndpointEntryKey).(string)
235+ // config.ContainerAzureBasePath = d.Get(ContainerAzureEndpointEntryKey).(string)
236+ // config.DataplexBasePath = d.Get(DataplexEndpointEntryKey).(string)
237+ // config.EventarcBasePath = d.Get(EventarcEndpointEntryKey).(string)
238+ // config.FirebaserulesBasePath = d.Get(FirebaserulesEndpointEntryKey).(string)
239+ // config.LoggingBasePath = d.Get(LoggingEndpointEntryKey).(string)
240+ // config.MonitoringBasePath = d.Get(MonitoringEndpointEntryKey).(string)
241+ // config.NetworkConnectivityBasePath = d.Get(NetworkConnectivityEndpointEntryKey).(string)
242+ // config.OrgPolicyBasePath = d.Get(OrgPolicyEndpointEntryKey).(string)
243+ // config.OSConfigBasePath = d.Get(OSConfigEndpointEntryKey).(string)
244+ // config.PrivatecaBasePath = d.Get(PrivatecaEndpointEntryKey).(string)
245+ // config.RecaptchaEnterpriseBasePath = d.Get(RecaptchaEnterpriseEndpointEntryKey).(string)
0 commit comments