-
Notifications
You must be signed in to change notification settings - Fork 616
Video Intelligence (GAPIC only) #2318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
e1cba42
38d576a
62ee805
3e65573
fe021c0
75c0b64
2aba91f
704b653
0b2f332
54a4a30
df81904
4785160
bb3c63f
d328897
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"url": "https://github.com/googleapis/googleapis", | ||
"name": "@google-cloud/video-intelligence", | ||
"version": "0.1.0", | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
"author": "Google Inc", | ||
"description": "Google Cloud Video Intelligence API client for Node.js", | ||
"main": "src/index.js", | ||
"files": [ | ||
"src" | ||
], | ||
"dependencies": { | ||
"google-proto-files": "^0.8.6", | ||
"google-gax": "^0.12.2", | ||
"extend": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "3.2.0", | ||
"through2": "2.0.3" | ||
}, | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha" | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2016 Google Inc. All rights reserved. | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var gapic = { | ||
v1beta1: require('./v1beta1'), | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
}; | ||
|
||
const VERSION = require('../package.json').version; | ||
|
||
|
||
/** | ||
* Create an imageAnnotatorClient with additional helpers for common | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
* tasks. | ||
* | ||
* @param {Object=} opts - The optional parameters. | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
* @param {String=} opts.servicePath | ||
* The domain name of the API remote host. | ||
* @param {number=} opts.port | ||
* The port on which to connect to the remote host. | ||
* @param {grpc.ClientCredentials=} opts.sslCreds | ||
* A ClientCredentials for use with an SSL-enabled channel. | ||
* @param {Object=} opts.clientConfig | ||
* The customized config to build the call settings. See | ||
* {@link gax.constructSettings} for the format. | ||
*/ | ||
function videointelligence_v1beta1(opts) { | ||
// Define the header options. | ||
opts = opts || {}; | ||
opts.libName = 'gccl'; | ||
opts.libVersion = VERSION; | ||
|
||
// Create the image annotator client with the provided options. | ||
var client = gapic.v1beta1(opts).videoIntelligenceServiceClient(opts); | ||
return client; | ||
} | ||
|
||
// The default export should be the latest version. | ||
// Assign all versions as version properties on the default. | ||
module.exports = videointelligence_v1beta1; | ||
module.exports.v1beta1 = videointelligence_v1beta1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2016 Google Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
'use strict'; | ||
|
||
var videoIntelligenceServiceClient = require('./video_intelligence_service_client'); | ||
var gax = require('google-gax'); | ||
var extend = require('extend'); | ||
|
||
function v1beta1(options) { | ||
options = extend({ | ||
scopes: v1beta1.ALL_SCOPES | ||
}, options); | ||
var gaxGrpc = gax.grpc(options); | ||
return videoIntelligenceServiceClient(gaxGrpc); | ||
} | ||
|
||
v1beta1.GAPIC_VERSION = '0.7.1'; | ||
v1beta1.SERVICE_ADDRESS = videoIntelligenceServiceClient.SERVICE_ADDRESS; | ||
v1beta1.ALL_SCOPES = videoIntelligenceServiceClient.ALL_SCOPES; | ||
|
||
module.exports = v1beta1; |
This comment was marked as spam.
Sorry, something went wrong.