mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
Adding "name" to Cloud Build resource (#31)
Adding "name" to Cloud Build resource
This commit is contained in:
commit
c5f24a9ef7
2 changed files with 20 additions and 4 deletions
|
@ -53,6 +53,12 @@ options:
|
||||||
- The unique identifier for the trigger.
|
- The unique identifier for the trigger.
|
||||||
required: false
|
required: false
|
||||||
type: str
|
type: str
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
- Name of the trigger. Must be unique within the project.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
|
version_added: '2.10'
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Human-readable description of the trigger.
|
- Human-readable description of the trigger.
|
||||||
|
@ -370,6 +376,11 @@ id:
|
||||||
- The unique identifier for the trigger.
|
- The unique identifier for the trigger.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
- Name of the trigger. Must be unique within the project.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Human-readable description of the trigger.
|
- Human-readable description of the trigger.
|
||||||
|
@ -629,6 +640,7 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
id=dict(type='str'),
|
id=dict(type='str'),
|
||||||
|
name=dict(type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
disabled=dict(type='bool'),
|
disabled=dict(type='bool'),
|
||||||
substitutions=dict(type='dict'),
|
substitutions=dict(type='dict'),
|
||||||
|
@ -679,10 +691,7 @@ def main():
|
||||||
|
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
if module.params['id']:
|
fetch = fetch_resource(module, self_link(module))
|
||||||
fetch = fetch_resource(module, self_link(module))
|
|
||||||
else:
|
|
||||||
fetch = {}
|
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
if fetch:
|
if fetch:
|
||||||
|
@ -725,6 +734,7 @@ def delete(module, link):
|
||||||
def resource_to_request(module):
|
def resource_to_request(module):
|
||||||
request = {
|
request = {
|
||||||
u'id': module.params.get('id'),
|
u'id': module.params.get('id'),
|
||||||
|
u'name': module.params.get('name'),
|
||||||
u'description': module.params.get('description'),
|
u'description': module.params.get('description'),
|
||||||
u'disabled': module.params.get('disabled'),
|
u'disabled': module.params.get('disabled'),
|
||||||
u'substitutions': module.params.get('substitutions'),
|
u'substitutions': module.params.get('substitutions'),
|
||||||
|
@ -799,6 +809,7 @@ def is_different(module, response):
|
||||||
def response_to_hash(module, response):
|
def response_to_hash(module, response):
|
||||||
return {
|
return {
|
||||||
u'id': response.get(u'id'),
|
u'id': response.get(u'id'),
|
||||||
|
u'name': response.get(u'name'),
|
||||||
u'description': response.get(u'description'),
|
u'description': response.get(u'description'),
|
||||||
u'disabled': response.get(u'disabled'),
|
u'disabled': response.get(u'disabled'),
|
||||||
u'createTime': response.get(u'createTime'),
|
u'createTime': response.get(u'createTime'),
|
||||||
|
|
|
@ -109,6 +109,11 @@ resources:
|
||||||
- The unique identifier for the trigger.
|
- The unique identifier for the trigger.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
- Name of the trigger. Must be unique within the project.
|
||||||
|
returned: success
|
||||||
|
type: str
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Human-readable description of the trigger.
|
- Human-readable description of the trigger.
|
||||||
|
|
Loading…
Add table
Reference in a new issue