File tree 8 files changed +54
-0
lines changed
packages/google-cloud-dataproc/src
8 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ export class AutoscalingPolicyServiceClient {
133
133
// Save the auth object to the client, for use by other methods.
134
134
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
135
135
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this . auth . useJWTAccessWithScope = true ;
138
+
139
+ // Set defaultServicePath on the auth object.
140
+ this . auth . defaultServicePath = staticMembers . servicePath ;
141
+
136
142
// Set the default scopes in auth client if needed.
137
143
if ( servicePath === staticMembers . servicePath ) {
138
144
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -134,6 +134,12 @@ export class ClusterControllerClient {
134
134
// Save the auth object to the client, for use by other methods.
135
135
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
136
136
137
+ // Set useJWTAccessWithScope on the auth object.
138
+ this . auth . useJWTAccessWithScope = true ;
139
+
140
+ // Set defaultServicePath on the auth object.
141
+ this . auth . defaultServicePath = staticMembers . servicePath ;
142
+
137
143
// Set the default scopes in auth client if needed.
138
144
if ( servicePath === staticMembers . servicePath ) {
139
145
this . auth . defaultScopes = staticMembers . scopes ;
@@ -2117,6 +2123,7 @@ export class ClusterControllerClient {
2117
2123
return this . clusterControllerStub ! . then ( stub => {
2118
2124
this . _terminated = true ;
2119
2125
stub . close ( ) ;
2126
+ this . operationsClient . close ( ) ;
2120
2127
} ) ;
2121
2128
}
2122
2129
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ export class JobControllerClient {
133
133
// Save the auth object to the client, for use by other methods.
134
134
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
135
135
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this . auth . useJWTAccessWithScope = true ;
138
+
139
+ // Set defaultServicePath on the auth object.
140
+ this . auth . defaultServicePath = staticMembers . servicePath ;
141
+
136
142
// Set the default scopes in auth client if needed.
137
143
if ( servicePath === staticMembers . servicePath ) {
138
144
this . auth . defaultScopes = staticMembers . scopes ;
@@ -1531,6 +1537,7 @@ export class JobControllerClient {
1531
1537
return this . jobControllerStub ! . then ( stub => {
1532
1538
this . _terminated = true ;
1533
1539
stub . close ( ) ;
1540
+ this . operationsClient . close ( ) ;
1534
1541
} ) ;
1535
1542
}
1536
1543
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ export class WorkflowTemplateServiceClient {
135
135
// Save the auth object to the client, for use by other methods.
136
136
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
137
137
138
+ // Set useJWTAccessWithScope on the auth object.
139
+ this . auth . useJWTAccessWithScope = true ;
140
+
141
+ // Set defaultServicePath on the auth object.
142
+ this . auth . defaultServicePath = staticMembers . servicePath ;
143
+
138
144
// Set the default scopes in auth client if needed.
139
145
if ( servicePath === staticMembers . servicePath ) {
140
146
this . auth . defaultScopes = staticMembers . scopes ;
@@ -1771,6 +1777,7 @@ export class WorkflowTemplateServiceClient {
1771
1777
return this . workflowTemplateServiceStub ! . then ( stub => {
1772
1778
this . _terminated = true ;
1773
1779
stub . close ( ) ;
1780
+ this . operationsClient . close ( ) ;
1774
1781
} ) ;
1775
1782
}
1776
1783
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ export class AutoscalingPolicyServiceClient {
133
133
// Save the auth object to the client, for use by other methods.
134
134
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
135
135
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this . auth . useJWTAccessWithScope = true ;
138
+
139
+ // Set defaultServicePath on the auth object.
140
+ this . auth . defaultServicePath = staticMembers . servicePath ;
141
+
136
142
// Set the default scopes in auth client if needed.
137
143
if ( servicePath === staticMembers . servicePath ) {
138
144
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -134,6 +134,12 @@ export class ClusterControllerClient {
134
134
// Save the auth object to the client, for use by other methods.
135
135
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
136
136
137
+ // Set useJWTAccessWithScope on the auth object.
138
+ this . auth . useJWTAccessWithScope = true ;
139
+
140
+ // Set defaultServicePath on the auth object.
141
+ this . auth . defaultServicePath = staticMembers . servicePath ;
142
+
137
143
// Set the default scopes in auth client if needed.
138
144
if ( servicePath === staticMembers . servicePath ) {
139
145
this . auth . defaultScopes = staticMembers . scopes ;
@@ -1741,6 +1747,7 @@ export class ClusterControllerClient {
1741
1747
return this . clusterControllerStub ! . then ( stub => {
1742
1748
this . _terminated = true ;
1743
1749
stub . close ( ) ;
1750
+ this . operationsClient . close ( ) ;
1744
1751
} ) ;
1745
1752
}
1746
1753
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ export class JobControllerClient {
133
133
// Save the auth object to the client, for use by other methods.
134
134
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
135
135
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this . auth . useJWTAccessWithScope = true ;
138
+
139
+ // Set defaultServicePath on the auth object.
140
+ this . auth . defaultServicePath = staticMembers . servicePath ;
141
+
136
142
// Set the default scopes in auth client if needed.
137
143
if ( servicePath === staticMembers . servicePath ) {
138
144
this . auth . defaultScopes = staticMembers . scopes ;
@@ -1541,6 +1547,7 @@ export class JobControllerClient {
1541
1547
return this . jobControllerStub ! . then ( stub => {
1542
1548
this . _terminated = true ;
1543
1549
stub . close ( ) ;
1550
+ this . operationsClient . close ( ) ;
1544
1551
} ) ;
1545
1552
}
1546
1553
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ export class WorkflowTemplateServiceClient {
135
135
// Save the auth object to the client, for use by other methods.
136
136
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
137
137
138
+ // Set useJWTAccessWithScope on the auth object.
139
+ this . auth . useJWTAccessWithScope = true ;
140
+
141
+ // Set defaultServicePath on the auth object.
142
+ this . auth . defaultServicePath = staticMembers . servicePath ;
143
+
138
144
// Set the default scopes in auth client if needed.
139
145
if ( servicePath === staticMembers . servicePath ) {
140
146
this . auth . defaultScopes = staticMembers . scopes ;
@@ -1781,6 +1787,7 @@ export class WorkflowTemplateServiceClient {
1781
1787
return this . workflowTemplateServiceStub ! . then ( stub => {
1782
1788
this . _terminated = true ;
1783
1789
stub . close ( ) ;
1790
+ this . operationsClient . close ( ) ;
1784
1791
} ) ;
1785
1792
}
1786
1793
return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments