mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-04 18:00:26 -07:00
This commit is contained in:
parent
2b35fbf404
commit
e89571eb91
1 changed files with 0 additions and 15 deletions
|
@ -984,21 +984,6 @@ class SubscriptionCloudStorageConfig(object):
|
|||
)
|
||||
|
||||
def from_response(self):
|
||||
return remove_nones_from_dict(
|
||||
{
|
||||
u'bucket': self.request.get('bucket'),
|
||||
u'filenamePrefix': self.request.get('filenamePrefix', {}),
|
||||
u'filenameSuffix': self.request.get('filenameSuffix', {}),
|
||||
u'filenameDatetimeFormat': self.request.get('filenameDatetimeFormat', {}),
|
||||
u'maxDuration': self.request.get('maxDuration', {}),
|
||||
u'maxBytes': self.request.get('maxBytes', {}),
|
||||
u'maxMessages': self.request.get('maxMessages', {}),
|
||||
u'avroConfig': {'writeMetadata': self.request.get('avroConfig', {}).get('writeMetadata', False),
|
||||
'useTopicSchema': self.request.get('avroConfig', {}).get('useTopicSchema', False)}
|
||||
if self.request.get('avroConfig', {})
|
||||
else {},
|
||||
}
|
||||
)
|
||||
storageConfig = {
|
||||
u'bucket': self.request.get('bucket', {}),
|
||||
u'filenamePrefix': self.request.get('filenamePrefix', {}),
|
||||
|
|
Loading…
Add table
Reference in a new issue