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