File tree 3 files changed +6
-0
lines changed
packages/google-cloud-securitycenter/src
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ export class SecurityCenterClient {
142
142
}
143
143
if ( ! opts . fallback ) {
144
144
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
+ } else if ( opts . fallback === 'rest' ) {
146
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
147
}
146
148
if ( opts . libName && opts . libVersion ) {
147
149
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ export class SecurityCenterClient {
142
142
}
143
143
if ( ! opts . fallback ) {
144
144
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
+ } else if ( opts . fallback === 'rest' ) {
146
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
147
}
146
148
if ( opts . libName && opts . libVersion ) {
147
149
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ export class SecurityCenterClient {
142
142
}
143
143
if ( ! opts . fallback ) {
144
144
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
+ } else if ( opts . fallback === 'rest' ) {
146
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
145
147
}
146
148
if ( opts . libName && opts . libVersion ) {
147
149
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
You can’t perform that action at this time.
0 commit comments