Skip to content

Commit 4571f15

Browse files
yoshi-automationcallmehiphop
authored andcommitted
fix: adjust timeout values (#700)
1 parent 00ffd35 commit 4571f15

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

src/v1/doc/google/iam/v1/doc_policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* {
3434
* "bindings": [
3535
* {
36-
* "role": "role/resourcemanager.organizationAdmin",
36+
* "role": "roles/resourcemanager.organizationAdmin",
3737
* "members": [
3838
* "user:mike@example.com",
3939
* "group:admins@example.com",

src/v1/spanner_client.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,17 @@ class SpannerClient {
349349
* The request object that will be sent.
350350
* @param {string} request.database
351351
* Required. The database in which the new sessions are created.
352-
* @param {Object} [request.sessionTemplate]
353-
* Parameters to be applied to each created session.
354-
*
355-
* This object should have the same structure as [Session]{@link google.spanner.v1.Session}
356-
* @param {number} [request.sessionCount]
352+
* @param {number} request.sessionCount
357353
* Required. The number of sessions to be created in this batch call.
358354
* The API may return fewer than the requested number of sessions. If a
359355
* specific number of sessions are desired, the client can make additional
360356
* calls to BatchCreateSessions (adjusting
361357
* session_count
362358
* as necessary).
359+
* @param {Object} [request.sessionTemplate]
360+
* Parameters to be applied to each created session.
361+
*
362+
* This object should have the same structure as [Session]{@link google.spanner.v1.Session}
363363
* @param {Object} [options]
364364
* Optional parameters. You can override the default settings for this call, e.g, timeout,
365365
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details.
@@ -380,7 +380,12 @@ class SpannerClient {
380380
* });
381381
*
382382
* const formattedDatabase = client.databasePath('[PROJECT]', '[INSTANCE]', '[DATABASE]');
383-
* client.batchCreateSessions({database: formattedDatabase})
383+
* const sessionCount = 0;
384+
* const request = {
385+
* database: formattedDatabase,
386+
* sessionCount: sessionCount,
387+
* };
388+
* client.batchCreateSessions(request)
384389
* .then(responses => {
385390
* const response = responses[0];
386391
* // doThingsWith(response)

src/v1/spanner_client_config.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
"initial_retry_delay_millis": 250,
1212
"retry_delay_multiplier": 1.3,
1313
"max_retry_delay_millis": 32000,
14-
"initial_rpc_timeout_millis": 60000,
14+
"initial_rpc_timeout_millis": 360000,
1515
"rpc_timeout_multiplier": 1.0,
16-
"max_rpc_timeout_millis": 60000,
17-
"total_timeout_millis": 600000
16+
"max_rpc_timeout_millis": 360000,
17+
"total_timeout_millis": 3600000
1818
},
1919
"streaming": {
2020
"initial_retry_delay_millis": 250,
2121
"retry_delay_multiplier": 1.3,
2222
"max_retry_delay_millis": 32000,
23-
"initial_rpc_timeout_millis": 120000,
23+
"initial_rpc_timeout_millis": 360000,
2424
"rpc_timeout_multiplier": 1.0,
25-
"max_rpc_timeout_millis": 120000,
26-
"total_timeout_millis": 1200000
25+
"max_rpc_timeout_millis": 360000,
26+
"total_timeout_millis": 3600000
2727
},
2828
"long_running": {
2929
"initial_retry_delay_millis": 250,

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-09-20T11:24:28.610954Z",
2+
"updateTime": "2019-09-27T11:27:44.182217Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.36.3",
8-
"dockerImage": "googleapis/artman@sha256:66ca01f27ef7dc50fbfb7743b67028115a6a8acf43b2d82f9fc826de008adac4"
7+
"version": "0.37.1",
8+
"dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "44e588d97e7497dff01107d39b6a19062f9a4ffa",
16-
"internalRef": "270200097"
15+
"sha": "cd112d8d255e0099df053643d4bd12c228ef7b1b",
16+
"internalRef": "271468707"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)