File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,7 +325,10 @@ function Datastore(options) {
325325 service : 'datastore' ,
326326 apiVersion : 'v1' ,
327327 scopes : [ 'https://www.googleapis.com/auth/datastore' ] ,
328- userAgent : PKG . name + '/' + PKG . version
328+ userAgent : PKG . name + '/' + PKG . version ,
329+ grpcMetadata : {
330+ 'google-cloud-resource-prefix' : 'projects/' + this . projectId
331+ }
329332 } ;
330333
331334 common . GrpcService . call ( this , config , options ) ;
Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ describe('Datastore', function() {
158158 'https://www.googleapis.com/auth/datastore'
159159 ] ) ;
160160 assert . strictEqual ( calledWith . userAgent , PKG . name + '/' + PKG . version ) ;
161+ assert . deepEqual ( calledWith . grpcMetadata , {
162+ 'google-cloud-resource-prefix' : 'projects/' + datastore . projectId
163+ } ) ;
161164 } ) ;
162165 } ) ;
163166
You can’t perform that action at this time.
0 commit comments