Bug fixes for GCP modules (#54764)
This commit is contained in:
parent
9908b2fbf6
commit
1eef039929
8 changed files with 39 additions and 33 deletions
|
@ -93,12 +93,12 @@ items:
|
|||
description:
|
||||
- URL of the Target VPN gateway with which this VPN tunnel is associated.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
router:
|
||||
description:
|
||||
- URL of router resource to be used for dynamic routing.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
peerIp:
|
||||
description:
|
||||
- IP address of the peer VPN gateway. Only IPv4 is supported.
|
||||
|
|
|
@ -198,9 +198,10 @@ options:
|
|||
description:
|
||||
- The cluster this node pool belongs to.
|
||||
- 'This field represents a link to a Cluster resource in GCP. It can be specified
|
||||
in two ways. First, you can place in the name of the resource here as a string
|
||||
Alternatively, you can add `register: name-of-resource` to a gcp_container_cluster
|
||||
task and then set this cluster field to "{{ name-of-resource }}"'
|
||||
in two ways. First, you can place a dictionary with key ''name'' and value of
|
||||
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: true
|
||||
location:
|
||||
description:
|
||||
|
@ -413,7 +414,7 @@ cluster:
|
|||
description:
|
||||
- The cluster this node pool belongs to.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
location:
|
||||
description:
|
||||
- The location where the node pool is deployed.
|
||||
|
@ -462,7 +463,7 @@ def main():
|
|||
management=dict(
|
||||
type='dict', options=dict(auto_upgrade=dict(type='bool'), auto_repair=dict(type='bool'), upgrade_options=dict(type='dict', options=dict()))
|
||||
),
|
||||
cluster=dict(required=True),
|
||||
cluster=dict(required=True, type='dict'),
|
||||
location=dict(required=True, type='str', aliases=['region', 'zone']),
|
||||
)
|
||||
)
|
||||
|
|
|
@ -52,9 +52,10 @@ options:
|
|||
description:
|
||||
- The cluster this node pool belongs to.
|
||||
- 'This field represents a link to a Cluster resource in GCP. It can be specified
|
||||
in two ways. First, you can place in the name of the resource here as a string
|
||||
Alternatively, you can add `register: name-of-resource` to a gcp_container_cluster
|
||||
task and then set this cluster field to "{{ name-of-resource }}"'
|
||||
in two ways. First, you can place a dictionary with key ''name'' and value of
|
||||
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: true
|
||||
extends_documentation_fragment: gcp
|
||||
'''
|
||||
|
@ -252,7 +253,7 @@ items:
|
|||
description:
|
||||
- The cluster this node pool belongs to.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
location:
|
||||
description:
|
||||
- The location where the node pool is deployed.
|
||||
|
@ -272,7 +273,7 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone']), cluster=dict(required=True)))
|
||||
module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone']), cluster=dict(required=True, type='dict')))
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']
|
||||
|
|
|
@ -85,9 +85,10 @@ options:
|
|||
description:
|
||||
- Identifies the managed zone addressed by this request.
|
||||
- 'This field represents a link to a ManagedZone resource in GCP. It can be specified
|
||||
in two ways. First, you can place in the name of the resource here as a string
|
||||
Alternatively, you can add `register: name-of-resource` to a gcp_dns_managed_zone
|
||||
task and then set this managed_zone field to "{{ name-of-resource }}"'
|
||||
in two ways. First, you can place a dictionary with key ''name'' and value of
|
||||
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: true
|
||||
extends_documentation_fragment: gcp
|
||||
'''
|
||||
|
@ -144,7 +145,7 @@ managed_zone:
|
|||
description:
|
||||
- Identifies the managed zone addressed by this request.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
'''
|
||||
|
||||
################################################################################
|
||||
|
@ -172,7 +173,7 @@ def main():
|
|||
type=dict(required=True, type='str', choices=['A', 'AAAA', 'CAA', 'CNAME', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'SPF', 'SRV', 'TLSA', 'TXT']),
|
||||
ttl=dict(type='int'),
|
||||
target=dict(type='list', elements='str'),
|
||||
managed_zone=dict(required=True),
|
||||
managed_zone=dict(required=True, type='dict'),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -44,9 +44,10 @@ options:
|
|||
description:
|
||||
- Identifies the managed zone addressed by this request.
|
||||
- 'This field represents a link to a ManagedZone resource in GCP. It can be specified
|
||||
in two ways. First, you can place in the name of the resource here as a string
|
||||
Alternatively, you can add `register: name-of-resource` to a gcp_dns_managed_zone
|
||||
task and then set this managed_zone field to "{{ name-of-resource }}"'
|
||||
in two ways. First, you can place a dictionary with key ''name'' and value of
|
||||
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: true
|
||||
extends_documentation_fragment: gcp
|
||||
'''
|
||||
|
@ -91,7 +92,7 @@ items:
|
|||
description:
|
||||
- Identifies the managed zone addressed by this request.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
'''
|
||||
|
||||
################################################################################
|
||||
|
@ -106,7 +107,7 @@ import json
|
|||
|
||||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(managed_zone=dict(required=True)))
|
||||
module = GcpModule(argument_spec=dict(managed_zone=dict(required=True, type='dict')))
|
||||
|
||||
if not module.params['scopes']:
|
||||
module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']
|
||||
|
|
|
@ -67,9 +67,10 @@ options:
|
|||
description:
|
||||
- The name of the serviceAccount.
|
||||
- 'This field represents a link to a ServiceAccount resource in GCP. It can be
|
||||
specified in two ways. First, you can place in the name of the resource here
|
||||
as a string Alternatively, you can add `register: name-of-resource` to a gcp_iam_service_account
|
||||
task and then set this service_account field to "{{ name-of-resource }}"'
|
||||
specified in two ways. First, you can place a dictionary with key ''name'' and
|
||||
value of your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_iam_service_account task and then set this service_account field to
|
||||
"{{ name-of-resource }}"'
|
||||
required: false
|
||||
path:
|
||||
description:
|
||||
|
@ -142,7 +143,7 @@ serviceAccount:
|
|||
description:
|
||||
- The name of the serviceAccount.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
path:
|
||||
description:
|
||||
- The full name of the file that will hold the service account private key. The
|
||||
|
@ -176,7 +177,7 @@ def main():
|
|||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||
private_key_type=dict(type='str', choices=['TYPE_UNSPECIFIED', 'TYPE_PKCS12_FILE', 'TYPE_GOOGLE_CREDENTIALS_FILE']),
|
||||
key_algorithm=dict(type='str', choices=['KEY_ALG_UNSPECIFIED', 'KEY_ALG_RSA_1024', 'KEY_ALG_RSA_2048']),
|
||||
service_account=dict(),
|
||||
service_account=dict(type='dict'),
|
||||
path=dict(type='path'),
|
||||
)
|
||||
)
|
||||
|
|
|
@ -56,9 +56,10 @@ options:
|
|||
description:
|
||||
- A reference to a Topic resource.
|
||||
- 'This field represents a link to a Topic resource in GCP. It can be specified
|
||||
in two ways. First, you can place in the name of the resource here as a string
|
||||
Alternatively, you can add `register: name-of-resource` to a gcp_pubsub_topic
|
||||
task and then set this topic field to "{{ name-of-resource }}"'
|
||||
in two ways. First, you can place a dictionary with key ''name'' and value of
|
||||
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_pubsub_topic task and then set this topic field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: true
|
||||
labels:
|
||||
description:
|
||||
|
@ -170,7 +171,7 @@ topic:
|
|||
description:
|
||||
- A reference to a Topic resource.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
labels:
|
||||
description:
|
||||
- A set of key/value label pairs to assign to this Subscription.
|
||||
|
@ -266,7 +267,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||
name=dict(required=True, type='str'),
|
||||
topic=dict(required=True),
|
||||
topic=dict(required=True, type='dict'),
|
||||
labels=dict(type='dict'),
|
||||
push_config=dict(type='dict', options=dict(push_endpoint=dict(required=True, type='str'), attributes=dict(type='dict'))),
|
||||
ack_deadline_seconds=dict(type='int'),
|
||||
|
|
|
@ -67,7 +67,7 @@ items:
|
|||
description:
|
||||
- A reference to a Topic resource.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
labels:
|
||||
description:
|
||||
- A set of key/value label pairs to assign to this Subscription.
|
||||
|
|
Loading…
Reference in a new issue