Skip to content

Commit 2eb8cae

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
fix: DEADLINE_EXCEEDED retry code is idempotent (#234)
1 parent 26fa2a6 commit 2eb8cae

10 files changed

+15
-8
lines changed

packages/google-cloud-videointelligence/src/v1/video_intelligence_service_client.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class VideoIntelligenceServiceClient {
269269
* // optional auth parameters.
270270
* });
271271
*
272-
* const inputUri = 'gs://videodemomaker/cat.mp4';
272+
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
273273
* const featuresElement = 'LABEL_DETECTION';
274274
* const features = [featuresElement];
275275
* const request = {
@@ -294,7 +294,7 @@ class VideoIntelligenceServiceClient {
294294
* console.error(err);
295295
* });
296296
*
297-
* const inputUri = 'gs://videodemomaker/cat.mp4';
297+
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
298298
* const featuresElement = 'LABEL_DETECTION';
299299
* const features = [featuresElement];
300300
* const request = {
@@ -328,7 +328,7 @@ class VideoIntelligenceServiceClient {
328328
* console.error(err);
329329
* });
330330
*
331-
* const inputUri = 'gs://videodemomaker/cat.mp4';
331+
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
332332
* const featuresElement = 'LABEL_DETECTION';
333333
* const features = [featuresElement];
334334
* const request = {

packages/google-cloud-videointelligence/src/v1/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1beta1/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1beta1.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1beta2/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1beta2.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1p1beta1/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1p2beta1/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/src/v1p3beta1/video_intelligence_service_client_config.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService": {
44
"retry_codes": {
55
"idempotent": [
6+
"DEADLINE_EXCEEDED",
67
"UNAVAILABLE"
78
],
89
"non_idempotent": []

packages/google-cloud-videointelligence/synth.metadata

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-05-09T11:25:45.168969Z",
2+
"updateTime": "2019-05-10T12:18:43.741935Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,8 +12,8 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "2f6e293d9a0097167ed5160fd366403c21b5fa49",
16-
"internalRef": "247230302"
15+
"sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a",
16+
"internalRef": "247530843"
1717
}
1818
},
1919
{

packages/google-cloud-videointelligence/test/gapic-v1.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('VideoIntelligenceServiceClient', () => {
3333
);
3434

3535
// Mock request
36-
const inputUri = 'gs://videodemomaker/cat.mp4';
36+
const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
3737
const featuresElement = 'LABEL_DETECTION';
3838
const features = [featuresElement];
3939
const request = {
@@ -74,7 +74,7 @@ describe('VideoIntelligenceServiceClient', () => {
7474
);
7575

7676
// Mock request
77-
const inputUri = 'gs://videodemomaker/cat.mp4';
77+
const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
7878
const featuresElement = 'LABEL_DETECTION';
7979
const features = [featuresElement];
8080
const request = {

0 commit comments

Comments
 (0)