Skip to content

Commit

Permalink
feat(videointelligence): update the API
Browse files Browse the repository at this point in the history
#### videointelligence:v1p1beta1
The following keys were changed:
- schemas.GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse.properties.annotationResultsUri.description

#### videointelligence:v1p2beta1
The following keys were changed:
- schemas.GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse.properties.annotationResultsUri.description

#### videointelligence:v1p3beta1
The following keys were changed:
- schemas.GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse.properties.annotationResultsUri.description

#### videointelligence:v1
The following keys were added:
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.description
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.flatPath
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.httpMethod
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.id
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameterOrder
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameters.name.location
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameters.name.pattern
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameters.name.required
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.parameters.name.type
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.path
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.response.$ref
- resources.projects.resources.locations.resources.corpura.resources.operations.methods.get.scopes

The following keys were changed:
- schemas.GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse.properties.annotationResultsUri.description

#### videointelligence:v1beta2
The following keys were changed:
- schemas.GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse.properties.annotationResultsUri.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 5, 2020
1 parent 193c575 commit d1c3570
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 15 deletions.
37 changes: 35 additions & 2 deletions discovery/videointelligence-v1.json
Expand Up @@ -200,6 +200,39 @@
"resources": {
"locations": {
"resources": {
"corpura": {
"resources": {
"operations": {
"methods": {
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/corpura/{corpuraId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "videointelligence.projects.locations.corpura.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/corpura/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "GoogleLongrunning_Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
},
"operations": {
"methods": {
"cancel": {
Expand Down Expand Up @@ -350,7 +383,7 @@
}
}
},
"revision": "20200423",
"revision": "20200602",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
Expand Down Expand Up @@ -3899,7 +3932,7 @@
"description": "Streaming annotation results."
},
"annotationResultsUri": {
"description": "Google Cloud Storage(GCS) URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"description": "Google Cloud Storage URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"type": "string"
},
"error": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/videointelligence-v1beta2.json
Expand Up @@ -128,7 +128,7 @@
}
}
},
"revision": "20200423",
"revision": "20200602",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
Expand Down Expand Up @@ -3677,7 +3677,7 @@
"description": "Streaming annotation results."
},
"annotationResultsUri": {
"description": "Google Cloud Storage(GCS) URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"description": "Google Cloud Storage URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"type": "string"
},
"error": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/videointelligence-v1p1beta1.json
Expand Up @@ -128,7 +128,7 @@
}
}
},
"revision": "20200423",
"revision": "20200602",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
Expand Down Expand Up @@ -3677,7 +3677,7 @@
"description": "Streaming annotation results."
},
"annotationResultsUri": {
"description": "Google Cloud Storage(GCS) URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"description": "Google Cloud Storage URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"type": "string"
},
"error": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/videointelligence-v1p2beta1.json
Expand Up @@ -128,7 +128,7 @@
}
}
},
"revision": "20200423",
"revision": "20200602",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
Expand Down Expand Up @@ -3677,7 +3677,7 @@
"description": "Streaming annotation results."
},
"annotationResultsUri": {
"description": "Google Cloud Storage(GCS) URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"description": "Google Cloud Storage URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"type": "string"
},
"error": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/videointelligence-v1p3beta1.json
Expand Up @@ -128,7 +128,7 @@
}
}
},
"revision": "20200423",
"revision": "20200602",
"rootUrl": "https://videointelligence.googleapis.com/",
"schemas": {
"GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
Expand Down Expand Up @@ -3665,7 +3665,7 @@
"description": "Streaming annotation results."
},
"annotationResultsUri": {
"description": "Google Cloud Storage(GCS) URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"description": "Google Cloud Storage URI that stores annotation results of one\nstreaming session in JSON format.\nIt is the annotation_result_storage_directory\nfrom the request followed by '/cloud_project_number-session_id'.",
"type": "string"
},
"error": {
Expand Down
173 changes: 172 additions & 1 deletion src/apis/videointelligence/v1.ts
Expand Up @@ -1989,7 +1989,7 @@ export namespace videointelligence_v1 {
*/
annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
/**
* Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by '/cloud_project_number-session_id'.
*/
annotationResultsUri?: string | null;
/**
Expand Down Expand Up @@ -3471,15 +3471,186 @@ export namespace videointelligence_v1 {

export class Resource$Projects$Locations {
context: APIRequestContext;
corpura: Resource$Projects$Locations$Corpura;
operations: Resource$Projects$Locations$Operations;
constructor(context: APIRequestContext) {
this.context = context;
this.corpura = new Resource$Projects$Locations$Corpura(this.context);
this.operations = new Resource$Projects$Locations$Operations(
this.context
);
}
}

export class Resource$Projects$Locations$Corpura {
context: APIRequestContext;
operations: Resource$Projects$Locations$Corpura$Operations;
constructor(context: APIRequestContext) {
this.context = context;
this.operations = new Resource$Projects$Locations$Corpura$Operations(
this.context
);
}
}

export class Resource$Projects$Locations$Corpura$Operations {
context: APIRequestContext;
constructor(context: APIRequestContext) {
this.context = context;
}

/**
* videointelligence.projects.locations.corpura.operations.get
* @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
* @example
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/videointelligence.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const videointelligence = google.videointelligence('v1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options('auth', authClient);
*
* // Do the magic
* const res = await videointelligence.projects.locations.corpura.operations.get(
* {
* // The name of the operation resource.
* name:
* 'projects/my-project/locations/my-location/corpura/[^/]+/operations/my-operation',
* }
* );
* console.log(res.data);
*
* // Example response
* // {
* // "done": false,
* // "error": {},
* // "metadata": {},
* // "name": "my_name",
* // "response": {}
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* @alias videointelligence.projects.locations.corpura.operations.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The name of the operation resource.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(
params: Params$Resource$Projects$Locations$Corpura$Operations$Get,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
get(
params?: Params$Resource$Projects$Locations$Corpura$Operations$Get,
options?: MethodOptions
): GaxiosPromise<Schema$GoogleLongrunning_Operation>;
get(
params: Params$Resource$Projects$Locations$Corpura$Operations$Get,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
get(
params: Params$Resource$Projects$Locations$Corpura$Operations$Get,
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleLongrunning_Operation>,
callback: BodyResponseCallback<Schema$GoogleLongrunning_Operation>
): void;
get(
params: Params$Resource$Projects$Locations$Corpura$Operations$Get,
callback: BodyResponseCallback<Schema$GoogleLongrunning_Operation>
): void;
get(
callback: BodyResponseCallback<Schema$GoogleLongrunning_Operation>
): void;
get(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Corpura$Operations$Get
| BodyResponseCallback<Schema$GoogleLongrunning_Operation>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$GoogleLongrunning_Operation>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$GoogleLongrunning_Operation>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$GoogleLongrunning_Operation>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Locations$Corpura$Operations$Get;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Corpura$Operations$Get;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl =
options.rootUrl || 'https://videointelligence.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$GoogleLongrunning_Operation>(
parameters,
callback as BodyResponseCallback<{} | void>
);
} else {
return createAPIRequest<Schema$GoogleLongrunning_Operation>(parameters);
}
}
}

export interface Params$Resource$Projects$Locations$Corpura$Operations$Get
extends StandardParameters {
/**
* The name of the operation resource.
*/
name?: string;
}

export class Resource$Projects$Locations$Operations {
context: APIRequestContext;
constructor(context: APIRequestContext) {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/videointelligence/v1beta2.ts
Expand Up @@ -2162,7 +2162,7 @@ export namespace videointelligence_v1beta2 {
*/
annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
/**
* Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
*/
annotationResultsUri?: string | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/videointelligence/v1p1beta1.ts
Expand Up @@ -2162,7 +2162,7 @@ export namespace videointelligence_v1p1beta1 {
*/
annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
/**
* Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
*/
annotationResultsUri?: string | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/videointelligence/v1p2beta1.ts
Expand Up @@ -2162,7 +2162,7 @@ export namespace videointelligence_v1p2beta1 {
*/
annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
/**
* Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
*/
annotationResultsUri?: string | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/videointelligence/v1p3beta1.ts
Expand Up @@ -2150,7 +2150,7 @@ export namespace videointelligence_v1p3beta1 {
*/
annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
/**
* Google Cloud Storage(GCS) URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by &#39;/cloud_project_number-session_id&#39;.
*/
annotationResultsUri?: string | null;
/**
Expand Down

0 comments on commit d1c3570

Please sign in to comment.