@bjwatson, @tbetbetbe PTAL. Reproduce via:
$ git clone git@github.com:GoogleCloudPlatform/gcloud
$ cd gcloud
$ tox -e system-tests --notest
$ .tox/system-tests/bin/python
and then:
>>>fromgoogle.logging.v2.config_service_v2_apiimportConfigServiceV2Api>>>fromgcloud.logging._gaximport_SinksAPI>>>fromgcloud.loggingimportClient>>>client=Client()
>>>client._sinks_api=_SinksAPI(ConfigServiceV2Api())
>>>sink=client.sink('gcloud-issue-1890-sink', 'logName=gcloud-issue-1890',
... 'storage.googleapis.com/your-bucket-name')
>>>sink.exists()
False>>>sink.create()
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/home/tseaver/projects/agendaless/Google/src/gcloud-python/gcloud/logging/sink.py", line117, increateself.project, self.name, self.filter_, self.destination)
File"/home/tseaver/projects/agendaless/Google/src/gcloud-python/gcloud/logging/_gax.py", line188, insink_createself._gax_api.create_sink(parent, sink_pb, options)
File"/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/logging/v2/config_service_v2_api.py", line302, increate_sinksink=sink)
File"/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line496, ininitfield=_GetFieldByName(message_descriptor, field_name)
File"/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/py27/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line560, in_GetFieldByName
(message_descriptor.name, field_name))
ValueError: ProtocolmessageCreateSinkRequesthasno"parent"field.
@bjwatson, @tbetbetbe PTAL. Reproduce via:
$ git clone git@github.com:GoogleCloudPlatform/gcloud $ cd gcloud $ tox -e system-tests --notest $ .tox/system-tests/bin/pythonand then: