source: vendor/google/apiclient-services/src/CloudVideoIntelligence.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.8 KB
RevLine 
[e3d4e0a]1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for CloudVideoIntelligence (v1).
24 *
25 * <p>
26 * Detects objects, explicit content, and scene changes in videos. It also
27 * specifies the region for annotation and transcribes speech to text. Supports
28 * both asynchronous API and streaming API.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/video-intelligence/docs/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class CloudVideoIntelligence extends \Google\Service
38{
39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
40 const CLOUD_PLATFORM =
41 "https://www.googleapis.com/auth/cloud-platform";
42
43 public $operations_projects_locations_operations;
44 public $projects_locations_operations;
45 public $videos;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the CloudVideoIntelligence
50 * service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://videointelligence.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://videointelligence.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'videointelligence';
65
66 $this->operations_projects_locations_operations = new CloudVideoIntelligence\Resource\OperationsProjectsLocationsOperations(
67 $this,
68 $this->serviceName,
69 'operations',
70 [
71 'methods' => [
72 'cancel' => [
73 'path' => 'v1/operations/{+name}:cancel',
74 'httpMethod' => 'POST',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'delete' => [
83 'path' => 'v1/operations/{+name}',
84 'httpMethod' => 'DELETE',
85 'parameters' => [
86 'name' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 ],
92 ],'get' => [
93 'path' => 'v1/operations/{+name}',
94 'httpMethod' => 'GET',
95 'parameters' => [
96 'name' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],
103 ]
104 ]
105 );
106 $this->projects_locations_operations = new CloudVideoIntelligence\Resource\ProjectsLocationsOperations(
107 $this,
108 $this->serviceName,
109 'operations',
110 [
111 'methods' => [
112 'cancel' => [
113 'path' => 'v1/{+name}:cancel',
114 'httpMethod' => 'POST',
115 'parameters' => [
116 'name' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 ],
122 ],'delete' => [
123 'path' => 'v1/{+name}',
124 'httpMethod' => 'DELETE',
125 'parameters' => [
126 'name' => [
127 'location' => 'path',
128 'type' => 'string',
129 'required' => true,
130 ],
131 ],
132 ],'get' => [
133 'path' => 'v1/{+name}',
134 'httpMethod' => 'GET',
135 'parameters' => [
136 'name' => [
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ],
141 ],
142 ],'list' => [
143 'path' => 'v1/{+name}/operations',
144 'httpMethod' => 'GET',
145 'parameters' => [
146 'name' => [
147 'location' => 'path',
148 'type' => 'string',
149 'required' => true,
150 ],
151 'filter' => [
152 'location' => 'query',
153 'type' => 'string',
154 ],
155 'pageSize' => [
156 'location' => 'query',
157 'type' => 'integer',
158 ],
159 'pageToken' => [
160 'location' => 'query',
161 'type' => 'string',
162 ],
163 ],
164 ],
165 ]
166 ]
167 );
168 $this->videos = new CloudVideoIntelligence\Resource\Videos(
169 $this,
170 $this->serviceName,
171 'videos',
172 [
173 'methods' => [
174 'annotate' => [
175 'path' => 'v1/videos:annotate',
176 'httpMethod' => 'POST',
177 'parameters' => [],
178 ],
179 ]
180 ]
181 );
182 }
183}
184
185// Adding a class alias for backwards compatibility with the previous class name.
186class_alias(CloudVideoIntelligence::class, 'Google_Service_CloudVideoIntelligence');
Note: See TracBrowser for help on using the repository browser.