@@ -144,13 +144,13 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
144
144
// identifiers to uniquely identify resources within the API.
145
145
// Create useful helper objects for these.
146
146
this . _pathTemplates = {
147
- projectPathTemplate : new gaxModule . PathTemplate ( 'projects/{project}' ) ,
148
147
assessmentPathTemplate : new gaxModule . PathTemplate (
149
148
'projects/{project}/assessments/{assessment}'
150
149
) ,
151
150
keyPathTemplate : new gaxModule . PathTemplate (
152
151
'projects/{project}/keys/{key}'
153
152
) ,
153
+ projectPathTemplate : new gaxModule . PathTemplate ( 'projects/{project}' ) ,
154
154
} ;
155
155
156
156
// Some of the methods on this service return "paged" results,
@@ -901,9 +901,17 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
901
901
*/
902
902
listKeysStream (
903
903
request ?: protosTypes . google . cloud . recaptchaenterprise . v1beta1 . IListKeysRequest ,
904
- options ?: gax . CallOptions | { }
904
+ options ?: gax . CallOptions
905
905
) : Transform {
906
906
request = request || { } ;
907
+ options = options || { } ;
908
+ options . otherArgs = options . otherArgs || { } ;
909
+ options . otherArgs . headers = options . otherArgs . headers || { } ;
910
+ options . otherArgs . headers [
911
+ 'x-goog-request-params'
912
+ ] = gax . routingHeader . fromParams ( {
913
+ parent : request . parent || '' ,
914
+ } ) ;
907
915
const callSettings = new gax . CallSettings ( options ) ;
908
916
return this . _descriptors . page . listKeys . createStream (
909
917
this . _innerApiCalls . listKeys as gax . GaxCall ,
@@ -915,29 +923,6 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
915
923
// -- Path templates --
916
924
// --------------------
917
925
918
- /**
919
- * Return a fully-qualified project resource name string.
920
- *
921
- * @param {string } project
922
- * @returns {string } Resource name string.
923
- */
924
- projectPath ( project : string ) {
925
- return this . _pathTemplates . projectPathTemplate . render ( {
926
- project,
927
- } ) ;
928
- }
929
-
930
- /**
931
- * Parse the project from Project resource.
932
- *
933
- * @param {string } projectName
934
- * A fully-qualified path representing Project resource.
935
- * @returns {string } A string representing the project.
936
- */
937
- matchProjectFromProjectName ( projectName : string ) {
938
- return this . _pathTemplates . projectPathTemplate . match ( projectName ) . project ;
939
- }
940
-
941
926
/**
942
927
* Return a fully-qualified assessment resource name string.
943
928
*
@@ -1012,6 +997,29 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
1012
997
return this . _pathTemplates . keyPathTemplate . match ( keyName ) . key ;
1013
998
}
1014
999
1000
+ /**
1001
+ * Return a fully-qualified project resource name string.
1002
+ *
1003
+ * @param {string } project
1004
+ * @returns {string } Resource name string.
1005
+ */
1006
+ projectPath ( project : string ) {
1007
+ return this . _pathTemplates . projectPathTemplate . render ( {
1008
+ project,
1009
+ } ) ;
1010
+ }
1011
+
1012
+ /**
1013
+ * Parse the project from Project resource.
1014
+ *
1015
+ * @param {string } projectName
1016
+ * A fully-qualified path representing Project resource.
1017
+ * @returns {string } A string representing the project.
1018
+ */
1019
+ matchProjectFromProjectName ( projectName : string ) {
1020
+ return this . _pathTemplates . projectPathTemplate . match ( projectName ) . project ;
1021
+ }
1022
+
1015
1023
/**
1016
1024
* Terminate the GRPC channel and close the client.
1017
1025
*
0 commit comments