Skip to content
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

Video Intelligence (GAPIC only) #2318

Merged
merged 14 commits into from
May 18, 2017
27 changes: 27 additions & 0 deletions packages/video-intelligence/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"url": "https://github.com/googleapis/googleapis",

This comment was marked as spam.

"name": "@google-cloud/video-intelligence",
"version": "0.1.0",

This comment was marked as spam.

"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.

}
}
55 changes: 55 additions & 0 deletions packages/video-intelligence/src/index.js
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.

*
* 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.

};

const VERSION = require('../package.json').version;


/**
* Create an imageAnnotatorClient with additional helpers for common

This comment was marked as spam.

* tasks.
*
* @param {Object=} opts - The optional parameters.

This comment was marked as spam.

* @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;
34 changes: 34 additions & 0 deletions packages/video-intelligence/src/v1beta1/index.js
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;
Loading