Missing field name
in generated sample for datastream_v1
#2017
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The generated sample for
datastream_v1
does not specifyname
as a required field which is needed to specify the project name. See the documentation: https://cloud.google.com/python/docs/reference/datastream/latest/google.cloud.datastream_v1.services.datastream.DatastreamClient#google_cloud_datastream_v1_services_datastream_DatastreamClient_update_stream.The proto file also mentions that field to be an output only field and does not specify it to be a required field: https://github.com/googleapis/googleapis/blob/master/google/cloud/datastream/v1/datastream_resources.proto#L791.
The request to update the stream results in an error if the
name
field is not populated as part of the request. See: #1786The text was updated successfully, but these errors were encountered: