@@ -415,7 +415,7 @@ func resourceBigqueryConnectionConnectionCreate(d *schema.ResourceData, meta int
415415 if err != nil {
416416 return err
417417 } else if v , ok := d .GetOkExists ("connection_id" ); ! tpgresource .IsEmptyValue (reflect .ValueOf (connectionIdProp )) && (ok || ! reflect .DeepEqual (v , connectionIdProp )) {
418- obj ["connection_id " ] = connectionIdProp
418+ obj ["connectionId " ] = connectionIdProp
419419 }
420420 friendlyNameProp , err := expandBigqueryConnectionConnectionFriendlyName (d .Get ("friendly_name" ), d , config )
421421 if err != nil {
@@ -574,7 +574,7 @@ func resourceBigqueryConnectionConnectionRead(d *schema.ResourceData, meta inter
574574 if err := d .Set ("name" , flattenBigqueryConnectionConnectionName (res ["name" ], d , config )); err != nil {
575575 return fmt .Errorf ("Error reading Connection: %s" , err )
576576 }
577- if err := d .Set ("connection_id" , flattenBigqueryConnectionConnectionConnectionId (res ["connection_id " ], d , config )); err != nil {
577+ if err := d .Set ("connection_id" , flattenBigqueryConnectionConnectionConnectionId (res ["connectionId " ], d , config )); err != nil {
578578 return fmt .Errorf ("Error reading Connection: %s" , err )
579579 }
580580 if err := d .Set ("friendly_name" , flattenBigqueryConnectionConnectionFriendlyName (res ["friendlyName" ], d , config )); err != nil {
@@ -1598,8 +1598,8 @@ func expandBigqueryConnectionConnectionSparkSparkHistoryServerConfigDataprocClus
15981598}
15991599
16001600func resourceBigqueryConnectionConnectionEncoder (d * schema.ResourceData , meta interface {}, obj map [string ]interface {}) (map [string ]interface {}, error ) {
1601- // connection_id is needed to qualify the URL but cannot be sent in the body
1602- delete (obj , "connection_id " )
1601+ // connectionId is needed to qualify the URL but cannot be sent in the body
1602+ delete (obj , "connectionId " )
16031603 return obj , nil
16041604}
16051605
@@ -1611,7 +1611,7 @@ func resourceBigqueryConnectionConnectionPostCreateSetComputedFields(d *schema.R
16111611 }
16121612 // connection_id is set by API when unset
16131613 if tpgresource .IsEmptyValue (reflect .ValueOf (d .Get ("connection_id" ))) {
1614- if err := d .Set ("connection_id" , flattenBigqueryConnectionConnectionConnectionId (res ["connection_id " ], d , config )); err != nil {
1614+ if err := d .Set ("connection_id" , flattenBigqueryConnectionConnectionConnectionId (res ["connectionId " ], d , config )); err != nil {
16151615 return fmt .Errorf (`Error setting computed identity field "connection_id": %s` , err )
16161616 }
16171617 }
0 commit comments