@@ -252,7 +252,7 @@ type Resource struct {
252
252
StateUpgraders bool `yaml:"state_upgraders"`
253
253
254
254
// Do not apply the default attribution label
255
- SkipAttributionLabel bool `yaml:"skip_attribution_label "`
255
+ ExcludeAttributionLabel bool `yaml:"exclude_attribution_label "`
256
256
257
257
// This block inserts the named function and its attribute into the
258
258
// resource schema -- the code for the migrate_state function must
@@ -267,12 +267,12 @@ type Resource struct {
267
267
268
268
// Set to true for resources that are unable to be read from the API, such as
269
269
// public ca external account keys
270
- SkipRead bool `yaml:"skip_read "`
270
+ ExcludeRead bool `yaml:"exclude_read "`
271
271
272
272
// Set to true for resources that wish to disable automatic generation of default provider
273
273
// value customdiff functions
274
274
// TODO rewrite: 1 instance used
275
- SkipDefaultCdiff bool `yaml:"skip_default_cdiff "`
275
+ ExcludeDefaultCdiff bool `yaml:"exclude_default_cdiff "`
276
276
277
277
// This enables resources that get their project via a reference to a different resource
278
278
// instead of a project field to use User Project Overrides
@@ -604,7 +604,7 @@ func (r *Resource) AddLabelsRelatedFields(props []*Type, parent *Type) []*Type {
604
604
605
605
func (r * Resource ) addLabelsFields (props []* Type , parent * Type , labels * Type ) []* Type {
606
606
if parent == nil || parent .FlattenObject {
607
- if r .SkipAttributionLabel {
607
+ if r .ExcludeAttributionLabel {
608
608
r .CustomDiff = append (r .CustomDiff , "tpgresource.SetLabelsDiffWithoutAttributionLabel" )
609
609
} else {
610
610
r .CustomDiff = append (r .CustomDiff , "tpgresource.SetLabelsDiff" )
@@ -1291,7 +1291,7 @@ func (r Resource) IamAttributes() []string {
1291
1291
// we can reuse that config to create a resource to test IAM resources with.
1292
1292
func (r Resource ) FirstTestExample () resource.Examples {
1293
1293
examples := google .Reject (r .Examples , func (e resource.Examples ) bool {
1294
- return e .SkipTest
1294
+ return e .ExcludeTest
1295
1295
})
1296
1296
examples = google .Reject (examples , func (e resource.Examples ) bool {
1297
1297
return (r .ProductMetadata .VersionObjOrClosest (r .TargetVersionName ).CompareTo (r .ProductMetadata .VersionObjOrClosest (e .MinVersion )) < 0 )
@@ -1302,7 +1302,7 @@ func (r Resource) FirstTestExample() resource.Examples {
1302
1302
1303
1303
func (r Resource ) ExamplePrimaryResourceId () string {
1304
1304
examples := google .Reject (r .Examples , func (e resource.Examples ) bool {
1305
- return e .SkipTest
1305
+ return e .ExcludeTest
1306
1306
})
1307
1307
examples = google .Reject (examples , func (e resource.Examples ) bool {
1308
1308
return (r .ProductMetadata .VersionObjOrClosest (r .TargetVersionName ).CompareTo (r .ProductMetadata .VersionObjOrClosest (e .MinVersion )) < 0 )
@@ -1580,7 +1580,7 @@ func (r Resource) IsExcluded() bool {
1580
1580
1581
1581
func (r Resource ) TestExamples () []resource.Examples {
1582
1582
return google .Reject (google .Reject (r .Examples , func (e resource.Examples ) bool {
1583
- return e .SkipTest
1583
+ return e .ExcludeTest
1584
1584
}), func (e resource.Examples ) bool {
1585
1585
return e .MinVersion != "" && slices .Index (product .ORDER , r .TargetVersionName ) < slices .Index (product .ORDER , e .MinVersion )
1586
1586
})
0 commit comments