mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 12:20:27 -07:00
* Add user labels kv map to sql instance * Add userLabels to sql instance Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
43e2cd9596
commit
bfa9528cf4
2 changed files with 22 additions and 0 deletions
|
@ -325,6 +325,13 @@ options:
|
||||||
- Define the backup start time in UTC (HH:MM) .
|
- Define the backup start time in UTC (HH:MM) .
|
||||||
required: false
|
required: false
|
||||||
type: str
|
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:
|
project:
|
||||||
description:
|
description:
|
||||||
- The Google Cloud Platform project to use.
|
- The Google Cloud Platform project to use.
|
||||||
|
@ -687,6 +694,12 @@ settings:
|
||||||
this value.
|
this value.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
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:
|
gceZone:
|
||||||
description:
|
description:
|
||||||
- The Compute Engine zone that the instance is currently serving from. This value
|
- The Compute Engine zone that the instance is currently serving from. This value
|
||||||
|
@ -779,6 +792,7 @@ def main():
|
||||||
backup_configuration=dict(
|
backup_configuration=dict(
|
||||||
type='dict', options=dict(enabled=dict(type='bool'), binary_log_enabled=dict(type='bool'), start_time=dict(type='str'))
|
type='dict', options=dict(enabled=dict(type='bool'), binary_log_enabled=dict(type='bool'), start_time=dict(type='str'))
|
||||||
),
|
),
|
||||||
|
user_labels=dict(type='dict'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -1095,6 +1109,7 @@ class InstanceSettings(object):
|
||||||
u'tier': self.request.get('tier'),
|
u'tier': self.request.get('tier'),
|
||||||
u'availabilityType': self.request.get('availability_type'),
|
u'availabilityType': self.request.get('availability_type'),
|
||||||
u'backupConfiguration': InstanceBackupconfiguration(self.request.get('backup_configuration', {}), self.module).to_request(),
|
u'backupConfiguration': InstanceBackupconfiguration(self.request.get('backup_configuration', {}), self.module).to_request(),
|
||||||
|
u'userLabels': self.request.get('user_labels'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1106,6 +1121,7 @@ class InstanceSettings(object):
|
||||||
u'tier': self.request.get(u'tier'),
|
u'tier': self.request.get(u'tier'),
|
||||||
u'availabilityType': self.request.get(u'availabilityType'),
|
u'availabilityType': self.request.get(u'availabilityType'),
|
||||||
u'backupConfiguration': InstanceBackupconfiguration(self.request.get(u'backupConfiguration', {}), self.module).from_response(),
|
u'backupConfiguration': InstanceBackupconfiguration(self.request.get(u'backupConfiguration', {}), self.module).from_response(),
|
||||||
|
u'userLabels': self.request.get(u'userLabels'),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -414,6 +414,12 @@ resources:
|
||||||
try to update this value.
|
try to update this value.
|
||||||
returned: success
|
returned: success
|
||||||
type: int
|
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:
|
gceZone:
|
||||||
description:
|
description:
|
||||||
- The Compute Engine zone that the instance is currently serving from. This
|
- The Compute Engine zone that the instance is currently serving from. This
|
||||||
|
|
Loading…
Add table
Reference in a new issue