Skip to content

Commit 1d86b57

Browse files
committed
2 parents cc3b049 + 11ed0db commit 1d86b57

18 files changed

Lines changed: 81 additions & 70 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# limitations under the License.
1313

1414
---
15-
name: 'Billing'
15+
name: 'BillingBudgets'
16+
legacy_name: 'billing'
1617
display_name: 'Cloud Billing'
1718
versions:
1819
- name: 'ga'
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# limitations under the License.
1313

1414
---
15-
name: 'CoreBilling'
15+
name: 'CloudBilling'
1616
legacy_name: 'billing'
1717
display_name: 'Cloud Billing'
1818
versions:

mmv1/templates/terraform/state_migrations/billing_budget.go.tmpl renamed to mmv1/templates/terraform/state_migrations/billing_budgets_budget.go.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
func resourceBillingBudgetResourceV0() *schema.Resource {
1+
func resourceBillingBudgetsBudgetResourceV0() *schema.Resource {
22
return &schema.Resource{
33
Schema: map[string]*schema.Schema{
44
"amount": {
@@ -241,7 +241,7 @@ billingAccounts/{billingAccountId}/budgets/{budgetId}.`,
241241
}
242242
}
243243

244-
func ResourceBillingBudgetUpgradeV0(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) {
244+
func ResourceBillingBudgetsBudgetUpgradeV0(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) {
245245
log.Printf("[DEBUG] Attributes before migration: %#v", rawState)
246246

247247
rawState["name"] = tpgresource.GetResourceNameFromSelfLink(rawState["name"].(string))

mmv1/third_party/terraform/.teamcity/components/inputs/services_beta.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ var ServicesListBeta = mapOf(
136136
"displayName" to "Bigtable",
137137
"path" to "./google-beta/services/bigtable"
138138
),
139-
"billing" to mapOf(
140-
"name" to "billing",
141-
"displayName" to "Billing",
142-
"path" to "./google-beta/services/billing"
139+
"billingbudgets" to mapOf(
140+
"name" to "billingbudgets",
141+
"displayName" to "Billingbudgets",
142+
"path" to "./google-beta/services/billingbudgets"
143143
),
144144
"binaryauthorization" to mapOf(
145145
"name" to "binaryauthorization",
@@ -286,10 +286,10 @@ var ServicesListBeta = mapOf(
286286
"displayName" to "Containerazure",
287287
"path" to "./google-beta/services/containerazure"
288288
),
289-
"corebilling" to mapOf(
290-
"name" to "corebilling",
291-
"displayName" to "Corebilling",
292-
"path" to "./google-beta/services/corebilling"
289+
"cloudbilling" to mapOf(
290+
"name" to "cloudbilling",
291+
"displayName" to "Cloudbilling",
292+
"path" to "./google-beta/services/cloudbilling"
293293
),
294294
"databasemigrationservice" to mapOf(
295295
"name" to "databasemigrationservice",

mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ var ServicesListGa = mapOf(
136136
"displayName" to "Bigtable",
137137
"path" to "./google/services/bigtable"
138138
),
139-
"billing" to mapOf(
140-
"name" to "billing",
141-
"displayName" to "Billing",
142-
"path" to "./google/services/billing"
139+
"billingbudgets" to mapOf(
140+
"name" to "billingbudgets",
141+
"displayName" to "Billingbudgets",
142+
"path" to "./google/services/billingbudgets"
143143
),
144144
"binaryauthorization" to mapOf(
145145
"name" to "binaryauthorization",
@@ -286,10 +286,10 @@ var ServicesListGa = mapOf(
286286
"displayName" to "Containerazure",
287287
"path" to "./google/services/containerazure"
288288
),
289-
"corebilling" to mapOf(
290-
"name" to "corebilling",
291-
"displayName" to "Corebilling",
292-
"path" to "./google/services/corebilling"
289+
"cloudbilling" to mapOf(
290+
"name" to "cloudbilling",
291+
"displayName" to "Cloudbilling",
292+
"path" to "./google/services/cloudbilling"
293293
),
294294
"databasemigrationservice" to mapOf(
295295
"name" to "databasemigrationservice",

mmv1/third_party/terraform/fwmodels/provider_model.go.tmpl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@ type ProviderModel struct {
4444
{{- end }}
4545

4646
// Handwritten Products / Versioned / Atypical Entries
47-
CloudBillingCustomEndpoint types.String `tfsdk:"cloud_billing_custom_endpoint"`
4847
DataflowCustomEndpoint types.String `tfsdk:"dataflow_custom_endpoint"`
4948
IamCredentialsCustomEndpoint types.String `tfsdk:"iam_credentials_custom_endpoint"`
5049
ResourceManagerV3CustomEndpoint types.String `tfsdk:"resource_manager_v3_custom_endpoint"`
51-
{{- if ne $.TargetVersionName "ga" }}
52-
RuntimeconfigCustomEndpoint types.String `tfsdk:"runtimeconfig_custom_endpoint"`
53-
{{- end }}
5450
IAMCustomEndpoint types.String `tfsdk:"iam_custom_endpoint"`
5551
TagsLocationCustomEndpoint types.String `tfsdk:"tags_location_custom_endpoint"`
5652

@@ -64,6 +60,13 @@ type ProviderModel struct {
6460
CloudResourceManagerCustomEndpoint types.String `tfsdk:"cloud_resource_manager_custom_endpoint"`
6561
FirebaserulesCustomEndpoint types.String `tfsdk:"firebaserules_custom_endpoint"`
6662
RecaptchaEnterpriseCustomEndpoint types.String `tfsdk:"recaptcha_enterprise_custom_endpoint"`
63+
64+
// Tombstoned
65+
{{- if ne $.TargetVersionName "ga" }}
66+
RuntimeconfigCustomEndpoint types.String `tfsdk:"runtimeconfig_custom_endpoint"`
67+
{{- end }}
68+
CoreBillingCustomEndpoint types.String `tfsdk:"core_billing_custom_endpoint"`
69+
BillingCustomEndpoint types.String `tfsdk:"billing_custom_endpoint"`
6770
}
6871

6972
type ProviderBatching struct {

mmv1/third_party/terraform/fwprovider/framework_provider.go.tmpl

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,6 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
182182
},
183183

184184
// Handwritten Products / Versioned / Atypical Entries
185-
"cloud_billing_custom_endpoint": &schema.StringAttribute{
186-
Optional: true,
187-
Validators: []validator.String{
188-
transport_tpg.CustomEndpointValidator(),
189-
},
190-
},
191185
"dataflow_custom_endpoint": &schema.StringAttribute{
192186
Optional: true,
193187
Validators: []validator.String{
@@ -206,14 +200,6 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
206200
transport_tpg.CustomEndpointValidator(),
207201
},
208202
},
209-
{{- if ne $.TargetVersionName "ga" }}
210-
"runtimeconfig_custom_endpoint": &schema.StringAttribute{
211-
Optional: true,
212-
Validators: []validator.String{
213-
transport_tpg.CustomEndpointValidator(),
214-
},
215-
},
216-
{{- end }}
217203
"iam_custom_endpoint": &schema.StringAttribute{
218204
Optional: true,
219205
Validators: []validator.String{
@@ -270,6 +256,32 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
270256
transport_tpg.CustomEndpointValidator(),
271257
},
272258
},
259+
260+
{{- if ne $.TargetVersionName "ga" }}
261+
// Tombstoned - nonfunctional. https://github.com/hashicorp/terraform-provider-google/issues/26814
262+
"runtimeconfig_custom_endpoint": &schema.StringAttribute{
263+
Optional: true,
264+
Validators: []validator.String{
265+
transport_tpg.CustomEndpointValidator(),
266+
},
267+
},
268+
{{- end }}
269+
270+
// Tombstoned - nonfunctional. https://github.com/hashicorp/terraform-provider-google/issues/27037
271+
"core_billing_custom_endpoint": &schema.StringAttribute{
272+
Optional: true,
273+
Validators: []validator.String{
274+
transport_tpg.CustomEndpointValidator(),
275+
},
276+
},
277+
278+
// Tombstoned - nonfunctional. https://github.com/hashicorp/terraform-provider-google/issues/27038
279+
"billing_custom_endpoint": &schema.StringAttribute{
280+
Optional: true,
281+
Validators: []validator.String{
282+
transport_tpg.CustomEndpointValidator(),
283+
},
284+
},
273285
},
274286
Blocks: map[string]schema.Block{
275287
"batching": schema.ListNestedBlock{

mmv1/third_party/terraform/provider/provider.go.tmpl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ func Provider() *schema.Provider {
177177
},
178178

179179
// Handwritten Products / Versioned / Atypical Entries
180-
transport_tpg.CloudBillingCustomEndpointEntryKey: transport_tpg.CloudBillingCustomEndpointEntry,
181180
transport_tpg.DataflowCustomEndpointEntryKey: transport_tpg.DataflowCustomEndpointEntry,
182181
transport_tpg.IamCredentialsCustomEndpointEntryKey: transport_tpg.IamCredentialsCustomEndpointEntry,
183182
transport_tpg.ResourceManagerV3CustomEndpointEntryKey: transport_tpg.ResourceManagerV3CustomEndpointEntry,
@@ -201,6 +200,20 @@ func Provider() *schema.Provider {
201200
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
202201
},
203202
{{- end }}
203+
204+
// Tombstoned - nonfunctional. https://github.com/hashicorp/terraform-provider-google/issues/27037
205+
"core_billing_custom_endpoint": &schema.Schema{
206+
Type: schema.TypeString,
207+
Optional: true,
208+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
209+
},
210+
211+
// Tombstoned - nonfunctional. https://github.com/hashicorp/terraform-provider-google/issues/27038
212+
"billing_custom_endpoint": &schema.Schema{
213+
Type: schema.TypeString,
214+
Optional: true,
215+
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
216+
},
204217
},
205218

206219
ProviderMetaSchema: map[string]*schema.Schema{
@@ -401,7 +414,6 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
401414
{{- end }}
402415

403416
// Handwritten Products / Versioned / Atypical Entries
404-
config.CloudBillingBasePath = d.Get(transport_tpg.CloudBillingCustomEndpointEntryKey).(string)
405417
config.DataflowBasePath = d.Get(transport_tpg.DataflowCustomEndpointEntryKey).(string)
406418
config.IamCredentialsBasePath = d.Get(transport_tpg.IamCredentialsCustomEndpointEntryKey).(string)
407419
config.ResourceManagerV3BasePath = d.Get(transport_tpg.ResourceManagerV3CustomEndpointEntryKey).(string)

0 commit comments

Comments
 (0)