Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql user label #211

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions plugins/modules/gcp_sql_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,13 @@
- Define the backup start time in UTC (HH:MM) .
required: false
type: str
user_labels:
description:
- User-provided labels, represented as a dictionary where each label is a
single key value pair.
required: false
type: dict
version_added: '2.10'
project:
description:
- The Google Cloud Platform project to use.
Expand Down Expand Up @@ -687,6 +694,12 @@
this value.
returned: success
type: int
userLabels:
description:
- User-provided labels, represented as a dictionary where each label is a single
key value pair.
returned: success
type: dict
gceZone:
description:
- The Compute Engine zone that the instance is currently serving from. This value
Expand Down Expand Up @@ -779,6 +792,7 @@ def main():
backup_configuration=dict(
type='dict', options=dict(enabled=dict(type='bool'), binary_log_enabled=dict(type='bool'), start_time=dict(type='str'))
),
user_labels=dict(type='dict'),
),
),
)
Expand Down Expand Up @@ -1095,6 +1109,7 @@ def to_request(self):
u'tier': self.request.get('tier'),
u'availabilityType': self.request.get('availability_type'),
u'backupConfiguration': InstanceBackupconfiguration(self.request.get('backup_configuration', {}), self.module).to_request(),
u'userLabels': self.request.get('user_labels'),
}
)

Expand All @@ -1106,6 +1121,7 @@ def from_response(self):
u'tier': self.request.get(u'tier'),
u'availabilityType': self.request.get(u'availabilityType'),
u'backupConfiguration': InstanceBackupconfiguration(self.request.get(u'backupConfiguration', {}), self.module).from_response(),
u'userLabels': self.request.get(u'userLabels'),
}
)

Expand Down
6 changes: 6 additions & 0 deletions plugins/modules/gcp_sql_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@
try to update this value.
returned: success
type: int
userLabels:
description:
- User-provided labels, represented as a dictionary where each label is
a single key value pair.
returned: success
type: dict
gceZone:
description:
- The Compute Engine zone that the instance is currently serving from. This
Expand Down