API-интерфейс видео-разведки GetOperations не удалось.
Следующие способы работают.
import googleapiclient.discovery
from google.oauth2 import service_account
credentials = service_account.Credentials.from_service_account_file('cred.json')
service = googleapiclient.discovery.build('videointelligence', 'v1', credentials=credentials)
service_request = service.operations().get(name='projects/123456/locations/us-east1/operations/3456789')
print('Waiting for server processing...')
response = service_request.execute()
print('response::::', response)
TypeError: Parameter "name" value "projects/123456/locations/us-east1/operations/3456789" does not match the pattern "^[^/]+$"
Работают следующие.
service_request = service.projects().locations().operations().get
(name='projects/123456/locations/us-east1/operations/3456789')
service_request =service.operations().projects().locations().operations()
.get(name='projects/123456/locations/us-east1/operations/3456789')