Skip to content

Commit

Permalink
fix: DEADLINE_EXCEEDED retry code is idempotent (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed May 10, 2019
1 parent 2e2dc6d commit 681fa9a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class VideoIntelligenceServiceClient {
* // optional auth parameters.
* });
*
* const inputUri = 'gs://videodemomaker/cat.mp4';
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
* const featuresElement = 'LABEL_DETECTION';
* const features = [featuresElement];
* const request = {
Expand All @@ -294,7 +294,7 @@ class VideoIntelligenceServiceClient {
* console.error(err);
* });
*
* const inputUri = 'gs://videodemomaker/cat.mp4';
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
* const featuresElement = 'LABEL_DETECTION';
* const features = [featuresElement];
* const request = {
Expand Down Expand Up @@ -328,7 +328,7 @@ class VideoIntelligenceServiceClient {
* console.error(err);
* });
*
* const inputUri = 'gs://videodemomaker/cat.mp4';
* const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
* const featuresElement = 'LABEL_DETECTION';
* const features = [featuresElement];
* const request = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1beta1.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1beta2.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-videointelligence/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-05-09T11:25:45.168969Z",
"updateTime": "2019-05-10T12:18:43.741935Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "2f6e293d9a0097167ed5160fd366403c21b5fa49",
"internalRef": "247230302"
"sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a",
"internalRef": "247530843"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-videointelligence/test/gapic-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('VideoIntelligenceServiceClient', () => {
);

// Mock request
const inputUri = 'gs://videodemomaker/cat.mp4';
const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
const featuresElement = 'LABEL_DETECTION';
const features = [featuresElement];
const request = {
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('VideoIntelligenceServiceClient', () => {
);

// Mock request
const inputUri = 'gs://videodemomaker/cat.mp4';
const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
const featuresElement = 'LABEL_DETECTION';
const features = [featuresElement];
const request = {
Expand Down

0 comments on commit 681fa9a

Please sign in to comment.