Skip to content

Commit

Permalink
Add notificationPubsubTopic to BigQuery Data Transfer (#3881) (#507)
Browse files Browse the repository at this point in the history
* Add notificationPubsubTopic to BigQuery Data Transfer

* Fix test resource names suffix to be random

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 21, 2020
1 parent 2bf917a commit c530b11
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/bigquerydatatransfer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ func GetBigqueryDataTransferConfigApiObject(d TerraformResourceData, config *Con
} else if v, ok := d.GetOkExists("schedule"); !isEmptyValue(reflect.ValueOf(scheduleProp)) && (ok || !reflect.DeepEqual(v, scheduleProp)) {
obj["schedule"] = scheduleProp
}
notificationPubsubTopicProp, err := expandBigqueryDataTransferConfigNotificationPubsubTopic(d.Get("notification_pubsub_topic"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("notification_pubsub_topic"); !isEmptyValue(reflect.ValueOf(notificationPubsubTopicProp)) && (ok || !reflect.DeepEqual(v, notificationPubsubTopicProp)) {
obj["notificationPubsubTopic"] = notificationPubsubTopicProp
}
dataRefreshWindowDaysProp, err := expandBigqueryDataTransferConfigDataRefreshWindowDays(d.Get("data_refresh_window_days"), d, config)
if err != nil {
return nil, err
Expand Down Expand Up @@ -101,6 +107,10 @@ func expandBigqueryDataTransferConfigSchedule(v interface{}, d TerraformResource
return v, nil
}

func expandBigqueryDataTransferConfigNotificationPubsubTopic(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandBigqueryDataTransferConfigDataRefreshWindowDays(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}
Expand Down

0 comments on commit c530b11

Please sign in to comment.