File tree 2 files changed +7
-1
lines changed 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,10 @@ function Datastore(options) {
325
325
service : 'datastore' ,
326
326
apiVersion : 'v1' ,
327
327
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
+ }
329
332
} ;
330
333
331
334
common . GrpcService . call ( this , config , options ) ;
Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ describe('Datastore', function() {
158
158
'https://www.googleapis.com/auth/datastore'
159
159
] ) ;
160
160
assert . strictEqual ( calledWith . userAgent , PKG . name + '/' + PKG . version ) ;
161
+ assert . deepEqual ( calledWith . grpcMetadata , {
162
+ 'google-cloud-resource-prefix' : 'projects/' + datastore . projectId
163
+ } ) ;
161
164
} ) ;
162
165
} ) ;
163
166
You can’t perform that action at this time.
0 commit comments