@@ -108,6 +108,11 @@ was published. Notifications are only sent if the topic is non-empty. Topic name
108108project. [email protected] must have publisher permissions on the given 109109Cloud Pub/Sub topic. Not having adequate permissions will cause the calls that send notifications to fail.` ,
110110 },
111+ "send_for_bulk_import" : {
112+ Type : schema .TypeBool ,
113+ Optional : true ,
114+ Description : `Indicates whether or not to send Pub/Sub notifications on bulk import. Only supported for DICOM imports.` ,
115+ },
111116 },
112117 },
113118 },
@@ -474,12 +479,18 @@ func flattenHealthcareDicomStoreNotificationConfig(v interface{}, d *schema.Reso
474479 transformed := make (map [string ]interface {})
475480 transformed ["pubsub_topic" ] =
476481 flattenHealthcareDicomStoreNotificationConfigPubsubTopic (original ["pubsubTopic" ], d , config )
482+ transformed ["send_for_bulk_import" ] =
483+ flattenHealthcareDicomStoreNotificationConfigSendForBulkImport (original ["sendForBulkImport" ], d , config )
477484 return []interface {}{transformed }
478485}
479486func flattenHealthcareDicomStoreNotificationConfigPubsubTopic (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
480487 return v
481488}
482489
490+ func flattenHealthcareDicomStoreNotificationConfigSendForBulkImport (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
491+ return v
492+ }
493+
483494func flattenHealthcareDicomStoreStreamConfigs (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
484495 if v == nil {
485496 return v
@@ -554,13 +565,24 @@ func expandHealthcareDicomStoreNotificationConfig(v interface{}, d tpgresource.T
554565 transformed ["pubsubTopic" ] = transformedPubsubTopic
555566 }
556567
568+ transformedSendForBulkImport , err := expandHealthcareDicomStoreNotificationConfigSendForBulkImport (original ["send_for_bulk_import" ], d , config )
569+ if err != nil {
570+ return nil , err
571+ } else if val := reflect .ValueOf (transformedSendForBulkImport ); val .IsValid () && ! tpgresource .IsEmptyValue (val ) {
572+ transformed ["sendForBulkImport" ] = transformedSendForBulkImport
573+ }
574+
557575 return transformed , nil
558576}
559577
560578func expandHealthcareDicomStoreNotificationConfigPubsubTopic (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
561579 return v , nil
562580}
563581
582+ func expandHealthcareDicomStoreNotificationConfigSendForBulkImport (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
583+ return v , nil
584+ }
585+
564586func expandHealthcareDicomStoreStreamConfigs (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
565587 l := v .([]interface {})
566588 req := make ([]interface {}, 0 , len (l ))
0 commit comments