mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-08 20:00:29 -07:00
Reverting some ResourceRef changes (#226)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
795304780b
commit
bbaf1a79c7
64 changed files with 423 additions and 379 deletions
|
@ -62,16 +62,9 @@ def replace_resource_dict(item, value):
|
||||||
else:
|
else:
|
||||||
if not item:
|
if not item:
|
||||||
return item
|
return item
|
||||||
if isinstance(item, dict):
|
else:
|
||||||
return item.get(value)
|
return item.get(value)
|
||||||
|
|
||||||
# Item could be a string or a string representing a dictionary.
|
|
||||||
try:
|
|
||||||
new_item = ast.literal_eval(item)
|
|
||||||
return replace_resource_dict(new_item, value)
|
|
||||||
except ValueError:
|
|
||||||
return item
|
|
||||||
|
|
||||||
|
|
||||||
# Handles all authentication and HTTP sessions for GCP API calls.
|
# Handles all authentication and HTTP sessions for GCP API calls.
|
||||||
class GcpSession(object):
|
class GcpSession(object):
|
||||||
|
|
|
@ -101,9 +101,10 @@ options:
|
||||||
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
||||||
purposes.
|
purposes.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_subnetwork
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this subnetwork field to "{{ name-of-resource }}"'
|
to a gcp_compute_subnetwork task and then set this subnetwork field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
region:
|
region:
|
||||||
|
@ -181,7 +182,7 @@ subnetwork:
|
||||||
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
||||||
purposes.
|
purposes.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
users:
|
users:
|
||||||
description:
|
description:
|
||||||
- The URLs of the resources that are using this address.
|
- The URLs of the resources that are using this address.
|
||||||
|
@ -219,7 +220,7 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network_tier=dict(type='str', choices=['PREMIUM', 'STANDARD']),
|
network_tier=dict(type='str', choices=['PREMIUM', 'STANDARD']),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
region=dict(required=True, type='str'),
|
region=dict(required=True, type='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -122,7 +122,7 @@ items:
|
||||||
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
- This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER
|
||||||
purposes.
|
purposes.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
users:
|
users:
|
||||||
description:
|
description:
|
||||||
- The URLs of the resources that are using this address.
|
- The URLs of the resources that are using this address.
|
||||||
|
|
|
@ -98,10 +98,10 @@ options:
|
||||||
- When the BackendService has load balancing scheme INTERNAL, the instance
|
- When the BackendService has load balancing scheme INTERNAL, the instance
|
||||||
group must be in a zone within the same region as the BackendService.
|
group must be in a zone within the same region as the BackendService.
|
||||||
- 'This field represents a link to a InstanceGroup resource in GCP. It can
|
- 'This field represents a link to a InstanceGroup resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the resource
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
to a gcp_compute_instance_group task and then set this group field to "{{
|
name-of-resource` to a gcp_compute_instance_group task and then set this
|
||||||
name-of-resource }}"'
|
group field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
max_connections:
|
max_connections:
|
||||||
description:
|
description:
|
||||||
|
@ -401,7 +401,7 @@ backends:
|
||||||
- When the BackendService has load balancing scheme INTERNAL, the instance group
|
- When the BackendService has load balancing scheme INTERNAL, the instance group
|
||||||
must be in a zone within the same region as the BackendService.
|
must be in a zone within the same region as the BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
maxConnections:
|
maxConnections:
|
||||||
description:
|
description:
|
||||||
- The max number of simultaneous connections for the group. Can be used with
|
- The max number of simultaneous connections for the group. Can be used with
|
||||||
|
@ -658,7 +658,7 @@ def main():
|
||||||
balancing_mode=dict(default='UTILIZATION', type='str', choices=['UTILIZATION', 'RATE', 'CONNECTION']),
|
balancing_mode=dict(default='UTILIZATION', type='str', choices=['UTILIZATION', 'RATE', 'CONNECTION']),
|
||||||
capacity_scaler=dict(default=1.0, type='str'),
|
capacity_scaler=dict(default=1.0, type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
group=dict(),
|
group=dict(type='dict'),
|
||||||
max_connections=dict(type='int'),
|
max_connections=dict(type='int'),
|
||||||
max_connections_per_instance=dict(type='int'),
|
max_connections_per_instance=dict(type='int'),
|
||||||
max_rate=dict(type='int'),
|
max_rate=dict(type='int'),
|
||||||
|
|
|
@ -115,7 +115,7 @@ items:
|
||||||
- When the BackendService has load balancing scheme INTERNAL, the instance
|
- When the BackendService has load balancing scheme INTERNAL, the instance
|
||||||
group must be in a zone within the same region as the BackendService.
|
group must be in a zone within the same region as the BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
maxConnections:
|
maxConnections:
|
||||||
description:
|
description:
|
||||||
- The max number of simultaneous connections for the group. Can be used
|
- The max number of simultaneous connections for the group. Can be used
|
||||||
|
|
|
@ -163,9 +163,10 @@ options:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
- 'This field represents a link to a Snapshot resource in GCP. It can be specified
|
- 'This field represents a link to a Snapshot resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_snapshot
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this source_snapshot field to "{{ name-of-resource }}"'
|
to a gcp_compute_snapshot task and then set this source_snapshot field to "{{
|
||||||
|
name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
source_snapshot_encryption_key:
|
source_snapshot_encryption_key:
|
||||||
description:
|
description:
|
||||||
|
@ -374,7 +375,7 @@ sourceSnapshot:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceSnapshotEncryptionKey:
|
sourceSnapshotEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source snapshot. Required if the source
|
- The customer-supplied encryption key of the source snapshot. Required if the source
|
||||||
|
@ -441,7 +442,7 @@ def main():
|
||||||
zone=dict(required=True, type='str'),
|
zone=dict(required=True, type='str'),
|
||||||
source_image_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
source_image_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
||||||
disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
||||||
source_snapshot=dict(),
|
source_snapshot=dict(type='dict'),
|
||||||
source_snapshot_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
source_snapshot_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), kms_key_name=dict(type='str'))),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -243,7 +243,7 @@ items:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceSnapshotEncryptionKey:
|
sourceSnapshotEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source snapshot. Required if the
|
- The customer-supplied encryption key of the source snapshot. Required if the
|
||||||
|
|
|
@ -146,9 +146,10 @@ options:
|
||||||
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
||||||
.'
|
.'
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
default:
|
default:
|
||||||
selfLink: global/networks/default
|
selfLink: global/networks/default
|
||||||
|
@ -341,7 +342,7 @@ network:
|
||||||
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
||||||
.'
|
.'
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
- Priority for this rule. This is an integer between 0 and 65535, both inclusive.
|
- Priority for this rule. This is an integer between 0 and 65535, both inclusive.
|
||||||
|
@ -433,7 +434,7 @@ def main():
|
||||||
direction=dict(type='str', choices=['INGRESS', 'EGRESS']),
|
direction=dict(type='str', choices=['INGRESS', 'EGRESS']),
|
||||||
disabled=dict(type='bool'),
|
disabled=dict(type='bool'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(default=dict(selfLink='global/networks/default')),
|
network=dict(default=dict(selfLink='global/networks/default'), type='dict'),
|
||||||
priority=dict(default=1000, type='int'),
|
priority=dict(default=1000, type='int'),
|
||||||
source_ranges=dict(type='list', elements='str'),
|
source_ranges=dict(type='list', elements='str'),
|
||||||
source_service_accounts=dict(type='list', elements='str'),
|
source_service_accounts=dict(type='list', elements='str'),
|
||||||
|
|
|
@ -170,7 +170,7 @@ items:
|
||||||
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
networks/my-network projects/myproject/global/networks/my-network global/networks/default
|
||||||
.'
|
.'
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
- Priority for this rule. This is an integer between 0 and 65535, both inclusive.
|
- Priority for this rule. This is an integer between 0 and 65535, both inclusive.
|
||||||
|
|
|
@ -95,10 +95,10 @@ options:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_backend_service task and then set this backend_service field to
|
name-of-resource` to a gcp_compute_backend_service task and then set this backend_service
|
||||||
"{{ name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
ip_version:
|
ip_version:
|
||||||
description:
|
description:
|
||||||
|
@ -135,9 +135,10 @@ options:
|
||||||
specified, the default network will be used.
|
specified, the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
port_range:
|
port_range:
|
||||||
description:
|
description:
|
||||||
|
@ -170,9 +171,10 @@ options:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_subnetwork
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this subnetwork field to "{{ name-of-resource }}"'
|
to a gcp_compute_subnetwork task and then set this subnetwork field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
|
@ -183,9 +185,10 @@ options:
|
||||||
target object.
|
target object.
|
||||||
- This field is not used for internal load balancing.
|
- This field is not used for internal load balancing.
|
||||||
- 'This field represents a link to a TargetPool resource in GCP. It can be specified
|
- 'This field represents a link to a TargetPool resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_target_pool
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this target field to "{{ name-of-resource }}"'
|
to a gcp_compute_target_pool task and then set this target field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
version_added: 2.7
|
version_added: 2.7
|
||||||
all_ports:
|
all_ports:
|
||||||
|
@ -317,7 +320,7 @@ backendService:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
ipVersion:
|
ipVersion:
|
||||||
description:
|
description:
|
||||||
- The IP Version that will be used by this forwarding rule. Valid options are IPV4
|
- The IP Version that will be used by this forwarding rule. Valid options are IPV4
|
||||||
|
@ -350,7 +353,7 @@ network:
|
||||||
the default network will be used.
|
the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
portRange:
|
portRange:
|
||||||
description:
|
description:
|
||||||
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
||||||
|
@ -383,7 +386,7 @@ subnetwork:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
- A reference to a TargetPool resource to receive the matched traffic.
|
- A reference to a TargetPool resource to receive the matched traffic.
|
||||||
|
@ -393,7 +396,7 @@ target:
|
||||||
target object.
|
target object.
|
||||||
- This field is not used for internal load balancing.
|
- This field is not used for internal load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
allPorts:
|
allPorts:
|
||||||
description:
|
description:
|
||||||
- When the load balancing scheme is INTERNAL and protocol is TCP/UDP, omit `port`/`port_range`
|
- When the load balancing scheme is INTERNAL and protocol is TCP/UDP, omit `port`/`port_range`
|
||||||
|
@ -456,15 +459,15 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
ip_address=dict(type='str'),
|
ip_address=dict(type='str'),
|
||||||
ip_protocol=dict(type='str', choices=['TCP', 'UDP', 'ESP', 'AH', 'SCTP', 'ICMP']),
|
ip_protocol=dict(type='str', choices=['TCP', 'UDP', 'ESP', 'AH', 'SCTP', 'ICMP']),
|
||||||
backend_service=dict(),
|
backend_service=dict(type='dict'),
|
||||||
ip_version=dict(type='str', choices=['IPV4', 'IPV6']),
|
ip_version=dict(type='str', choices=['IPV4', 'IPV6']),
|
||||||
load_balancing_scheme=dict(type='str', choices=['INTERNAL', 'EXTERNAL']),
|
load_balancing_scheme=dict(type='str', choices=['INTERNAL', 'EXTERNAL']),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(),
|
network=dict(type='dict'),
|
||||||
port_range=dict(type='str'),
|
port_range=dict(type='str'),
|
||||||
ports=dict(type='list', elements='str'),
|
ports=dict(type='list', elements='str'),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
target=dict(),
|
target=dict(type='dict'),
|
||||||
all_ports=dict(type='bool'),
|
all_ports=dict(type='bool'),
|
||||||
network_tier=dict(type='str', choices=['PREMIUM', 'STANDARD']),
|
network_tier=dict(type='str', choices=['PREMIUM', 'STANDARD']),
|
||||||
service_label=dict(type='str'),
|
service_label=dict(type='str'),
|
||||||
|
|
|
@ -123,7 +123,7 @@ items:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
ipVersion:
|
ipVersion:
|
||||||
description:
|
description:
|
||||||
- The IP Version that will be used by this forwarding rule. Valid options are
|
- The IP Version that will be used by this forwarding rule. Valid options are
|
||||||
|
@ -156,7 +156,7 @@ items:
|
||||||
specified, the default network will be used.
|
specified, the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
portRange:
|
portRange:
|
||||||
description:
|
description:
|
||||||
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
||||||
|
@ -191,7 +191,7 @@ items:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
- A reference to a TargetPool resource to receive the matched traffic.
|
- A reference to a TargetPool resource to receive the matched traffic.
|
||||||
|
@ -201,7 +201,7 @@ items:
|
||||||
to the target object.
|
to the target object.
|
||||||
- This field is not used for internal load balancing.
|
- This field is not used for internal load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
allPorts:
|
allPorts:
|
||||||
description:
|
description:
|
||||||
- When the load balancing scheme is INTERNAL and protocol is TCP/UDP, omit `port`/`port_range`
|
- When the load balancing scheme is INTERNAL and protocol is TCP/UDP, omit `port`/`port_range`
|
||||||
|
|
|
@ -97,10 +97,10 @@ options:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_backend_service task and then set this backend_service field to
|
name-of-resource` to a gcp_compute_backend_service task and then set this backend_service
|
||||||
"{{ name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
ip_version:
|
ip_version:
|
||||||
description:
|
description:
|
||||||
|
@ -137,9 +137,10 @@ options:
|
||||||
specified, the default network will be used.
|
specified, the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
port_range:
|
port_range:
|
||||||
description:
|
description:
|
||||||
|
@ -172,9 +173,10 @@ options:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_subnetwork
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this subnetwork field to "{{ name-of-resource }}"'
|
to a gcp_compute_subnetwork task and then set this subnetwork field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
|
@ -318,7 +320,7 @@ backendService:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
ipVersion:
|
ipVersion:
|
||||||
description:
|
description:
|
||||||
- The IP Version that will be used by this forwarding rule. Valid options are IPV4
|
- The IP Version that will be used by this forwarding rule. Valid options are IPV4
|
||||||
|
@ -351,7 +353,7 @@ network:
|
||||||
the default network will be used.
|
the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
portRange:
|
portRange:
|
||||||
description:
|
description:
|
||||||
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
||||||
|
@ -384,7 +386,7 @@ subnetwork:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- A reference to the region where the regional forwarding rule resides.
|
- A reference to the region where the regional forwarding rule resides.
|
||||||
|
@ -422,14 +424,14 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
ip_address=dict(type='str'),
|
ip_address=dict(type='str'),
|
||||||
ip_protocol=dict(type='str', choices=['TCP', 'UDP', 'ESP', 'AH', 'SCTP', 'ICMP']),
|
ip_protocol=dict(type='str', choices=['TCP', 'UDP', 'ESP', 'AH', 'SCTP', 'ICMP']),
|
||||||
backend_service=dict(),
|
backend_service=dict(type='dict'),
|
||||||
ip_version=dict(type='str', choices=['IPV4', 'IPV6']),
|
ip_version=dict(type='str', choices=['IPV4', 'IPV6']),
|
||||||
load_balancing_scheme=dict(type='str', choices=['INTERNAL_SELF_MANAGED', 'EXTERNAL']),
|
load_balancing_scheme=dict(type='str', choices=['INTERNAL_SELF_MANAGED', 'EXTERNAL']),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(),
|
network=dict(type='dict'),
|
||||||
port_range=dict(type='str'),
|
port_range=dict(type='str'),
|
||||||
ports=dict(type='list', elements='str'),
|
ports=dict(type='list', elements='str'),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
target=dict(type='str'),
|
target=dict(type='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -117,7 +117,7 @@ items:
|
||||||
- This is used for internal load balancing.
|
- This is used for internal load balancing.
|
||||||
- "(not used for external load balancing) ."
|
- "(not used for external load balancing) ."
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
ipVersion:
|
ipVersion:
|
||||||
description:
|
description:
|
||||||
- The IP Version that will be used by this forwarding rule. Valid options are
|
- The IP Version that will be used by this forwarding rule. Valid options are
|
||||||
|
@ -150,7 +150,7 @@ items:
|
||||||
specified, the default network will be used.
|
specified, the default network will be used.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
portRange:
|
portRange:
|
||||||
description:
|
description:
|
||||||
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
- This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy,
|
||||||
|
@ -185,7 +185,7 @@ items:
|
||||||
if the network is in custom subnet mode, a subnetwork must be specified.
|
if the network is in custom subnet mode, a subnetwork must be specified.
|
||||||
- This field is not used for external load balancing.
|
- This field is not used for external load balancing.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- A reference to the region where the regional forwarding rule resides.
|
- A reference to the region where the regional forwarding rule resides.
|
||||||
|
|
|
@ -153,9 +153,10 @@ options:
|
||||||
- You must provide either this property or the rawDisk.source property but not
|
- You must provide either this property or the rawDisk.source property but not
|
||||||
both to create an image.
|
both to create an image.
|
||||||
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_disk
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this source_disk field to "{{ name-of-resource }}"'
|
to a gcp_compute_disk task and then set this source_disk field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
source_disk_encryption_key:
|
source_disk_encryption_key:
|
||||||
description:
|
description:
|
||||||
|
@ -384,7 +385,7 @@ sourceDisk:
|
||||||
- You must provide either this property or the rawDisk.source property but not both
|
- You must provide either this property or the rawDisk.source property but not both
|
||||||
to create an image.
|
to create an image.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceDiskEncryptionKey:
|
sourceDiskEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source disk. Required if the source
|
- The customer-supplied encryption key of the source disk. Required if the source
|
||||||
|
@ -451,7 +452,7 @@ def main():
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(container_type=dict(type='str', choices=['TAR']), sha1_checksum=dict(type='str'), source=dict(required=True, type='str')),
|
options=dict(container_type=dict(type='str', choices=['TAR']), sha1_checksum=dict(type='str'), source=dict(required=True, type='str')),
|
||||||
),
|
),
|
||||||
source_disk=dict(),
|
source_disk=dict(type='dict'),
|
||||||
source_disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
source_disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
||||||
source_disk_id=dict(type='str'),
|
source_disk_id=dict(type='str'),
|
||||||
source_type=dict(type='str', choices=['RAW']),
|
source_type=dict(type='str', choices=['RAW']),
|
||||||
|
|
|
@ -244,7 +244,7 @@ items:
|
||||||
- You must provide either this property or the rawDisk.source property but not
|
- You must provide either this property or the rawDisk.source property but not
|
||||||
both to create an image.
|
both to create an image.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceDiskEncryptionKey:
|
sourceDiskEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source disk. Required if the source
|
- The customer-supplied encryption key of the source disk. Required if the source
|
||||||
|
|
|
@ -176,9 +176,10 @@ options:
|
||||||
- If desired, you can also attach existing non-root persistent disks using
|
- If desired, you can also attach existing non-root persistent disks using
|
||||||
this property. This field is only applicable for persistent disks.
|
this property. This field is only applicable for persistent disks.
|
||||||
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as
|
in two ways. First, you can place a dictionary with key ''selfLink'' and
|
||||||
a string Alternatively, you can add `register: name-of-resource` to a gcp_compute_disk
|
value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
task and then set this source field to "{{ name-of-resource }}"'
|
name-of-resource` to a gcp_compute_disk task and then set this source field
|
||||||
|
to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
|
@ -261,10 +262,10 @@ options:
|
||||||
address pool. If you specify a static external IP address, it must live
|
address pool. If you specify a static external IP address, it must live
|
||||||
in the same region as the zone of the instance.
|
in the same region as the zone of the instance.
|
||||||
- 'This field represents a link to a Address resource in GCP. It can be
|
- 'This field represents a link to a Address resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the address of the resource
|
specified in two ways. First, you can place a dictionary with key ''address''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s address Alternatively, you can add `register:
|
||||||
to a gcp_compute_address task and then set this nat_ip field to "{{
|
name-of-resource` to a gcp_compute_address task and then set this nat_ip
|
||||||
name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
|
@ -299,9 +300,10 @@ options:
|
||||||
global/networks/default is used; if the network is not specified but the
|
global/networks/default is used; if the network is not specified but the
|
||||||
subnetwork is specified, the network is inferred.
|
subnetwork is specified, the network is inferred.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as
|
in two ways. First, you can place a dictionary with key ''selfLink'' and
|
||||||
a string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
name-of-resource` to a gcp_compute_network task and then set this network
|
||||||
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
network_ip:
|
network_ip:
|
||||||
description:
|
description:
|
||||||
|
@ -316,10 +318,10 @@ options:
|
||||||
If the network is in auto subnet mode, providing the subnetwork is optional.
|
If the network is in auto subnet mode, providing the subnetwork is optional.
|
||||||
If the network is in custom subnet mode, then this field should be specified.
|
If the network is in custom subnet mode, then this field should be specified.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can be
|
- 'This field represents a link to a Subnetwork resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
to a gcp_compute_subnetwork task and then set this subnetwork field to "{{
|
name-of-resource` to a gcp_compute_subnetwork task and then set this subnetwork
|
||||||
name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
|
@ -617,7 +619,7 @@ disks:
|
||||||
- If desired, you can also attach existing non-root persistent disks using this
|
- If desired, you can also attach existing non-root persistent disks using this
|
||||||
property. This field is only applicable for persistent disks.
|
property. This field is only applicable for persistent disks.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
||||||
|
@ -713,7 +715,7 @@ networkInterfaces:
|
||||||
address pool. If you specify a static external IP address, it must live
|
address pool. If you specify a static external IP address, it must live
|
||||||
in the same region as the zone of the instance.
|
in the same region as the zone of the instance.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
||||||
|
@ -755,7 +757,7 @@ networkInterfaces:
|
||||||
is used; if the network is not specified but the subnetwork is specified,
|
is used; if the network is not specified but the subnetwork is specified,
|
||||||
the network is inferred.
|
the network is inferred.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
networkIP:
|
networkIP:
|
||||||
description:
|
description:
|
||||||
- An IPv4 internal network address to assign to the instance for this network
|
- An IPv4 internal network address to assign to the instance for this network
|
||||||
|
@ -770,7 +772,7 @@ networkInterfaces:
|
||||||
the network is in auto subnet mode, providing the subnetwork is optional.
|
the network is in auto subnet mode, providing the subnetwork is optional.
|
||||||
If the network is in custom subnet mode, then this field should be specified.
|
If the network is in custom subnet mode, then this field should be specified.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
- Sets the scheduling options for this instance.
|
- Sets the scheduling options for this instance.
|
||||||
|
@ -901,7 +903,7 @@ def main():
|
||||||
),
|
),
|
||||||
interface=dict(type='str', choices=['SCSI', 'NVME']),
|
interface=dict(type='str', choices=['SCSI', 'NVME']),
|
||||||
mode=dict(type='str', choices=['READ_WRITE', 'READ_ONLY']),
|
mode=dict(type='str', choices=['READ_WRITE', 'READ_ONLY']),
|
||||||
source=dict(),
|
source=dict(type='dict'),
|
||||||
type=dict(type='str', choices=['SCRATCH', 'PERSISTENT']),
|
type=dict(type='str', choices=['SCRATCH', 'PERSISTENT']),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -918,12 +920,14 @@ def main():
|
||||||
access_configs=dict(
|
access_configs=dict(
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(name=dict(required=True, type='str'), nat_ip=dict(), type=dict(required=True, type='str', choices=['ONE_TO_ONE_NAT'])),
|
options=dict(
|
||||||
|
name=dict(required=True, type='str'), nat_ip=dict(type='dict'), type=dict(required=True, type='str', choices=['ONE_TO_ONE_NAT'])
|
||||||
|
),
|
||||||
),
|
),
|
||||||
alias_ip_ranges=dict(type='list', elements='dict', options=dict(ip_cidr_range=dict(type='str'), subnetwork_range_name=dict(type='str'))),
|
alias_ip_ranges=dict(type='list', elements='dict', options=dict(ip_cidr_range=dict(type='str'), subnetwork_range_name=dict(type='str'))),
|
||||||
network=dict(),
|
network=dict(type='dict'),
|
||||||
network_ip=dict(type='str'),
|
network_ip=dict(type='str'),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
scheduling=dict(
|
scheduling=dict(
|
||||||
|
|
|
@ -226,7 +226,7 @@ items:
|
||||||
- If desired, you can also attach existing non-root persistent disks using
|
- If desired, you can also attach existing non-root persistent disks using
|
||||||
this property. This field is only applicable for persistent disks.
|
this property. This field is only applicable for persistent disks.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
||||||
|
@ -324,7 +324,7 @@ items:
|
||||||
IP address pool. If you specify a static external IP address, it must
|
IP address pool. If you specify a static external IP address, it must
|
||||||
live in the same region as the zone of the instance.
|
live in the same region as the zone of the instance.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
||||||
|
@ -366,7 +366,7 @@ items:
|
||||||
global/networks/default is used; if the network is not specified but the
|
global/networks/default is used; if the network is not specified but the
|
||||||
subnetwork is specified, the network is inferred.
|
subnetwork is specified, the network is inferred.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
networkIP:
|
networkIP:
|
||||||
description:
|
description:
|
||||||
- An IPv4 internal network address to assign to the instance for this network
|
- An IPv4 internal network address to assign to the instance for this network
|
||||||
|
@ -381,7 +381,7 @@ items:
|
||||||
If the network is in auto subnet mode, providing the subnetwork is optional.
|
If the network is in auto subnet mode, providing the subnetwork is optional.
|
||||||
If the network is in custom subnet mode, then this field should be specified.
|
If the network is in custom subnet mode, then this field should be specified.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
- Sets the scheduling options for this instance.
|
- Sets the scheduling options for this instance.
|
||||||
|
|
|
@ -83,9 +83,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The network to which all instances in the instance group belong.
|
- The network to which all instances in the instance group belong.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
|
@ -95,9 +96,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The subnetwork to which all instances in the instance group belong.
|
- The subnetwork to which all instances in the instance group belong.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
- 'This field represents a link to a Subnetwork resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_subnetwork
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this subnetwork field to "{{ name-of-resource }}"'
|
to a gcp_compute_subnetwork task and then set this subnetwork field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
zone:
|
zone:
|
||||||
description:
|
description:
|
||||||
|
@ -188,7 +190,7 @@ network:
|
||||||
description:
|
description:
|
||||||
- The network to which all instances in the instance group belong.
|
- The network to which all instances in the instance group belong.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- The region where the instance group is located (for regional resources).
|
- The region where the instance group is located (for regional resources).
|
||||||
|
@ -198,7 +200,7 @@ subnetwork:
|
||||||
description:
|
description:
|
||||||
- The subnetwork to which all instances in the instance group belong.
|
- The subnetwork to which all instances in the instance group belong.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
zone:
|
zone:
|
||||||
description:
|
description:
|
||||||
- A reference to the zone where the instance group resides.
|
- A reference to the zone where the instance group resides.
|
||||||
|
@ -238,11 +240,11 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(type='str'),
|
name=dict(type='str'),
|
||||||
named_ports=dict(type='list', elements='dict', options=dict(name=dict(type='str'), port=dict(type='int'))),
|
named_ports=dict(type='list', elements='dict', options=dict(name=dict(type='str'), port=dict(type='int'))),
|
||||||
network=dict(),
|
network=dict(type='dict'),
|
||||||
region=dict(type='str'),
|
region=dict(type='str'),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
zone=dict(required=True, type='str'),
|
zone=dict(required=True, type='str'),
|
||||||
instances=dict(type='list'),
|
instances=dict(type='list', elements='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The network to which all instances in the instance group belong.
|
- The network to which all instances in the instance group belong.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- The region where the instance group is located (for regional resources).
|
- The region where the instance group is located (for regional resources).
|
||||||
|
@ -128,7 +128,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The subnetwork to which all instances in the instance group belong.
|
- The subnetwork to which all instances in the instance group belong.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
zone:
|
zone:
|
||||||
description:
|
description:
|
||||||
- A reference to the zone where the instance group resides.
|
- A reference to the zone where the instance group resides.
|
||||||
|
|
|
@ -70,10 +70,10 @@ options:
|
||||||
group uses this template to create all new instances in the managed instance
|
group uses this template to create all new instances in the managed instance
|
||||||
group.
|
group.
|
||||||
- 'This field represents a link to a InstanceTemplate resource in GCP. It can
|
- 'This field represents a link to a InstanceTemplate resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the resource
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_instance_template task and then set this instance_template field
|
name-of-resource` to a gcp_compute_instance_template task and then set this
|
||||||
to "{{ name-of-resource }}"'
|
instance_template field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -261,13 +261,13 @@ instanceGroup:
|
||||||
description:
|
description:
|
||||||
- The instance group being managed.
|
- The instance group being managed.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
instanceTemplate:
|
instanceTemplate:
|
||||||
description:
|
description:
|
||||||
- The instance template that is specified for this managed instance group. The group
|
- The instance template that is specified for this managed instance group. The group
|
||||||
uses this template to create all new instances in the managed instance group.
|
uses this template to create all new instances in the managed instance group.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the managed instance group. The name must be 1-63 characters long,
|
- The name of the managed instance group. The name must be 1-63 characters long,
|
||||||
|
@ -339,10 +339,10 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
base_instance_name=dict(required=True, type='str'),
|
base_instance_name=dict(required=True, type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
instance_template=dict(required=True),
|
instance_template=dict(required=True, type='dict'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
named_ports=dict(type='list', elements='dict', options=dict(name=dict(type='str'), port=dict(type='int'))),
|
named_ports=dict(type='list', elements='dict', options=dict(name=dict(type='str'), port=dict(type='int'))),
|
||||||
target_pools=dict(type='list'),
|
target_pools=dict(type='list', elements='dict'),
|
||||||
target_size=dict(type='int'),
|
target_size=dict(type='int'),
|
||||||
zone=dict(required=True, type='str'),
|
zone=dict(required=True, type='str'),
|
||||||
)
|
)
|
||||||
|
|
|
@ -162,14 +162,14 @@ items:
|
||||||
description:
|
description:
|
||||||
- The instance group being managed.
|
- The instance group being managed.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
instanceTemplate:
|
instanceTemplate:
|
||||||
description:
|
description:
|
||||||
- The instance template that is specified for this managed instance group. The
|
- The instance template that is specified for this managed instance group. The
|
||||||
group uses this template to create all new instances in the managed instance
|
group uses this template to create all new instances in the managed instance
|
||||||
group.
|
group.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the managed instance group. The name must be 1-63 characters long,
|
- The name of the managed instance group. The name must be 1-63 characters long,
|
||||||
|
|
|
@ -201,10 +201,10 @@ options:
|
||||||
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
||||||
the disk.
|
the disk.
|
||||||
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the name of the resource here as
|
in two ways. First, you can place a dictionary with key ''name'' and
|
||||||
a string Alternatively, you can add `register: name-of-resource` to
|
value of your resource''s name Alternatively, you can add `register:
|
||||||
a gcp_compute_disk task and then set this source field to "{{ name-of-resource
|
name-of-resource` to a gcp_compute_disk task and then set this source
|
||||||
}}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
|
@ -273,10 +273,10 @@ options:
|
||||||
IP address pool. If you specify a static external IP address, it
|
IP address pool. If you specify a static external IP address, it
|
||||||
must live in the same region as the zone of the instance.
|
must live in the same region as the zone of the instance.
|
||||||
- 'This field represents a link to a Address resource in GCP. It can
|
- 'This field represents a link to a Address resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the address of
|
be specified in two ways. First, you can place a dictionary with
|
||||||
the resource here as a string Alternatively, you can add `register:
|
key ''address'' and value of your resource''s address Alternatively,
|
||||||
name-of-resource` to a gcp_compute_address task and then set this
|
you can add `register: name-of-resource` to a gcp_compute_address
|
||||||
nat_ip field to "{{ name-of-resource }}"'
|
task and then set this nat_ip field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
|
@ -312,10 +312,10 @@ options:
|
||||||
network global/networks/default is used; if the network is not specified
|
network global/networks/default is used; if the network is not specified
|
||||||
but the subnetwork is specified, the network is inferred.
|
but the subnetwork is specified, the network is inferred.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be
|
- 'This field represents a link to a Network resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
to a gcp_compute_network task and then set this network field to "{{
|
name-of-resource` to a gcp_compute_network task and then set this network
|
||||||
name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
network_ip:
|
network_ip:
|
||||||
description:
|
description:
|
||||||
|
@ -330,10 +330,10 @@ options:
|
||||||
If the network is in auto subnet mode, providing the subnetwork is optional.
|
If the network is in auto subnet mode, providing the subnetwork is optional.
|
||||||
If the network is in custom subnet mode, then this field should be specified.
|
If the network is in custom subnet mode, then this field should be specified.
|
||||||
- 'This field represents a link to a Subnetwork resource in GCP. It can
|
- 'This field represents a link to a Subnetwork resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the
|
be specified in two ways. First, you can place a dictionary with key
|
||||||
resource here as a string Alternatively, you can add `register: name-of-resource`
|
''selfLink'' and value of your resource''s selfLink Alternatively, you
|
||||||
to a gcp_compute_subnetwork task and then set this subnetwork field
|
can add `register: name-of-resource` to a gcp_compute_subnetwork task
|
||||||
to "{{ name-of-resource }}"'
|
and then set this subnetwork field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
|
@ -626,7 +626,7 @@ properties:
|
||||||
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
||||||
the disk.
|
the disk.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
||||||
|
@ -699,7 +699,7 @@ properties:
|
||||||
IP address pool. If you specify a static external IP address, it must
|
IP address pool. If you specify a static external IP address, it must
|
||||||
live in the same region as the zone of the instance.
|
live in the same region as the zone of the instance.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
||||||
|
@ -741,7 +741,7 @@ properties:
|
||||||
global/networks/default is used; if the network is not specified but the
|
global/networks/default is used; if the network is not specified but the
|
||||||
subnetwork is specified, the network is inferred.
|
subnetwork is specified, the network is inferred.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
networkIP:
|
networkIP:
|
||||||
description:
|
description:
|
||||||
- An IPv4 internal network address to assign to the instance for this network
|
- An IPv4 internal network address to assign to the instance for this network
|
||||||
|
@ -756,7 +756,7 @@ properties:
|
||||||
If the network is in auto subnet mode, providing the subnetwork is optional.
|
If the network is in auto subnet mode, providing the subnetwork is optional.
|
||||||
If the network is in custom subnet mode, then this field should be specified.
|
If the network is in custom subnet mode, then this field should be specified.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
- Sets the scheduling options for this instance.
|
- Sets the scheduling options for this instance.
|
||||||
|
@ -877,7 +877,7 @@ def main():
|
||||||
),
|
),
|
||||||
interface=dict(type='str', choices=['SCSI', 'NVME']),
|
interface=dict(type='str', choices=['SCSI', 'NVME']),
|
||||||
mode=dict(type='str', choices=['READ_WRITE', 'READ_ONLY']),
|
mode=dict(type='str', choices=['READ_WRITE', 'READ_ONLY']),
|
||||||
source=dict(),
|
source=dict(type='dict'),
|
||||||
type=dict(type='str', choices=['SCRATCH', 'PERSISTENT']),
|
type=dict(type='str', choices=['SCRATCH', 'PERSISTENT']),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -893,15 +893,17 @@ def main():
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
name=dict(required=True, type='str'), nat_ip=dict(), type=dict(required=True, type='str', choices=['ONE_TO_ONE_NAT'])
|
name=dict(required=True, type='str'),
|
||||||
|
nat_ip=dict(type='dict'),
|
||||||
|
type=dict(required=True, type='str', choices=['ONE_TO_ONE_NAT']),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
alias_ip_ranges=dict(
|
alias_ip_ranges=dict(
|
||||||
type='list', elements='dict', options=dict(ip_cidr_range=dict(type='str'), subnetwork_range_name=dict(type='str'))
|
type='list', elements='dict', options=dict(ip_cidr_range=dict(type='str'), subnetwork_range_name=dict(type='str'))
|
||||||
),
|
),
|
||||||
network=dict(),
|
network=dict(type='dict'),
|
||||||
network_ip=dict(type='str'),
|
network_ip=dict(type='str'),
|
||||||
subnetwork=dict(),
|
subnetwork=dict(type='dict'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
scheduling=dict(
|
scheduling=dict(
|
||||||
|
|
|
@ -251,7 +251,7 @@ items:
|
||||||
- Note that for InstanceTemplate, specify the disk name, not the URL
|
- Note that for InstanceTemplate, specify the disk name, not the URL
|
||||||
for the disk.
|
for the disk.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
|
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
|
||||||
|
@ -327,7 +327,7 @@ items:
|
||||||
ephemeral IP address pool. If you specify a static external IP
|
ephemeral IP address pool. If you specify a static external IP
|
||||||
address, it must live in the same region as the zone of the instance.
|
address, it must live in the same region as the zone of the instance.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
||||||
|
@ -371,7 +371,7 @@ items:
|
||||||
network global/networks/default is used; if the network is not specified
|
network global/networks/default is used; if the network is not specified
|
||||||
but the subnetwork is specified, the network is inferred.
|
but the subnetwork is specified, the network is inferred.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
networkIP:
|
networkIP:
|
||||||
description:
|
description:
|
||||||
- An IPv4 internal network address to assign to the instance for this
|
- An IPv4 internal network address to assign to the instance for this
|
||||||
|
@ -387,7 +387,7 @@ items:
|
||||||
optional. If the network is in custom subnet mode, then this field
|
optional. If the network is in custom subnet mode, then this field
|
||||||
should be specified.
|
should be specified.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
scheduling:
|
scheduling:
|
||||||
description:
|
description:
|
||||||
- Sets the scheduling options for this instance.
|
- Sets the scheduling options for this instance.
|
||||||
|
|
|
@ -82,9 +82,10 @@ options:
|
||||||
will automatically connect the Interconnect to the network & region within which
|
will automatically connect the Interconnect to the network & region within which
|
||||||
the Cloud Router is configured.
|
the Cloud Router is configured.
|
||||||
- 'This field represents a link to a Router resource in GCP. It can be specified
|
- 'This field represents a link to a Router resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_router
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this router field to "{{ name-of-resource }}"'
|
to a gcp_compute_router task and then set this router field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -214,7 +215,7 @@ router:
|
||||||
automatically connect the Interconnect to the network & region within which the
|
automatically connect the Interconnect to the network & region within which the
|
||||||
Cloud Router is configured.
|
Cloud Router is configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
|
@ -282,7 +283,7 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
edge_availability_domain=dict(type='str'),
|
edge_availability_domain=dict(type='str'),
|
||||||
type=dict(type='str', choices=['DEDICATED', 'PARTNER', 'PARTNER_PROVIDER']),
|
type=dict(type='str', choices=['DEDICATED', 'PARTNER', 'PARTNER_PROVIDER']),
|
||||||
router=dict(required=True),
|
router=dict(required=True, type='dict'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
candidate_subnets=dict(type='list', elements='str'),
|
candidate_subnets=dict(type='list', elements='str'),
|
||||||
vlan_tag8021q=dict(type='int'),
|
vlan_tag8021q=dict(type='int'),
|
||||||
|
|
|
@ -154,7 +154,7 @@ items:
|
||||||
will automatically connect the Interconnect to the network & region within
|
will automatically connect the Interconnect to the network & region within
|
||||||
which the Cloud Router is configured.
|
which the Cloud Router is configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
|
|
|
@ -131,9 +131,10 @@ options:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
- 'This field represents a link to a Snapshot resource in GCP. It can be specified
|
- 'This field represents a link to a Snapshot resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_snapshot
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this source_snapshot field to "{{ name-of-resource }}"'
|
to a gcp_compute_snapshot task and then set this source_snapshot field to "{{
|
||||||
|
name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
source_snapshot_encryption_key:
|
source_snapshot_encryption_key:
|
||||||
description:
|
description:
|
||||||
|
@ -293,7 +294,7 @@ sourceSnapshot:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceSnapshotEncryptionKey:
|
sourceSnapshotEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source snapshot. Required if the source
|
- The customer-supplied encryption key of the source snapshot. Required if the source
|
||||||
|
@ -354,7 +355,7 @@ def main():
|
||||||
type=dict(type='str'),
|
type=dict(type='str'),
|
||||||
region=dict(required=True, type='str'),
|
region=dict(required=True, type='str'),
|
||||||
disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
disk_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
||||||
source_snapshot=dict(),
|
source_snapshot=dict(type='dict'),
|
||||||
source_snapshot_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
source_snapshot_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'))),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -194,7 +194,7 @@ items:
|
||||||
- The source snapshot used to create this disk. You can provide this as a partial
|
- The source snapshot used to create this disk. You can provide this as a partial
|
||||||
or full URL to the resource.
|
or full URL to the resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sourceSnapshotEncryptionKey:
|
sourceSnapshotEncryptionKey:
|
||||||
description:
|
description:
|
||||||
- The customer-supplied encryption key of the source snapshot. Required if the
|
- The customer-supplied encryption key of the source snapshot. Required if the
|
||||||
|
|
|
@ -86,9 +86,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The network that this route applies to.
|
- The network that this route applies to.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
|
@ -117,9 +118,10 @@ options:
|
||||||
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
||||||
.'
|
.'
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_instance
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this next_hop_instance field to "{{ name-of-resource }}"'
|
to a gcp_compute_instance task and then set this next_hop_instance field to
|
||||||
|
"{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
next_hop_ip:
|
next_hop_ip:
|
||||||
description:
|
description:
|
||||||
|
@ -129,9 +131,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- URL to a VpnTunnel that should handle matching packets.
|
- URL to a VpnTunnel that should handle matching packets.
|
||||||
- 'This field represents a link to a VpnTunnel resource in GCP. It can be specified
|
- 'This field represents a link to a VpnTunnel resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_vpn_tunnel
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this next_hop_vpn_tunnel field to "{{ name-of-resource }}"'
|
to a gcp_compute_vpn_tunnel task and then set this next_hop_vpn_tunnel field
|
||||||
|
to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
|
@ -191,7 +194,7 @@ network:
|
||||||
description:
|
description:
|
||||||
- The network that this route applies to.
|
- The network that this route applies to.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
- The priority of this route. Priority is used to break ties in cases where there
|
- The priority of this route. Priority is used to break ties in cases where there
|
||||||
|
@ -222,7 +225,7 @@ nextHopInstance:
|
||||||
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
||||||
.'
|
.'
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
nextHopIp:
|
nextHopIp:
|
||||||
description:
|
description:
|
||||||
- Network IP address of an instance that should handle matching packets.
|
- Network IP address of an instance that should handle matching packets.
|
||||||
|
@ -232,7 +235,7 @@ nextHopVpnTunnel:
|
||||||
description:
|
description:
|
||||||
- URL to a VpnTunnel that should handle matching packets.
|
- URL to a VpnTunnel that should handle matching packets.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
nextHopNetwork:
|
nextHopNetwork:
|
||||||
description:
|
description:
|
||||||
- URL to a Network that should handle matching packets.
|
- URL to a Network that should handle matching packets.
|
||||||
|
@ -262,13 +265,13 @@ def main():
|
||||||
dest_range=dict(required=True, type='str'),
|
dest_range=dict(required=True, type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(required=True),
|
network=dict(required=True, type='dict'),
|
||||||
priority=dict(type='int'),
|
priority=dict(type='int'),
|
||||||
tags=dict(type='list', elements='str'),
|
tags=dict(type='list', elements='str'),
|
||||||
next_hop_gateway=dict(type='str'),
|
next_hop_gateway=dict(type='str'),
|
||||||
next_hop_instance=dict(),
|
next_hop_instance=dict(type='dict'),
|
||||||
next_hop_ip=dict(type='str'),
|
next_hop_ip=dict(type='str'),
|
||||||
next_hop_vpn_tunnel=dict(),
|
next_hop_vpn_tunnel=dict(type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The network that this route applies to.
|
- The network that this route applies to.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
priority:
|
priority:
|
||||||
description:
|
description:
|
||||||
- The priority of this route. Priority is used to break ties in cases where
|
- The priority of this route. Priority is used to break ties in cases where
|
||||||
|
@ -122,7 +122,7 @@ items:
|
||||||
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
instances/instance * projects/project/zones/zone/instances/instance * zones/zone/instances/instance
|
||||||
.'
|
.'
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
nextHopIp:
|
nextHopIp:
|
||||||
description:
|
description:
|
||||||
- Network IP address of an instance that should handle matching packets.
|
- Network IP address of an instance that should handle matching packets.
|
||||||
|
@ -132,7 +132,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- URL to a VpnTunnel that should handle matching packets.
|
- URL to a VpnTunnel that should handle matching packets.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
nextHopNetwork:
|
nextHopNetwork:
|
||||||
description:
|
description:
|
||||||
- URL to a Network that should handle matching packets.
|
- URL to a Network that should handle matching packets.
|
||||||
|
|
|
@ -63,9 +63,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- A reference to the network to which this router belongs.
|
- A reference to the network to which this router belongs.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
bgp:
|
bgp:
|
||||||
description:
|
description:
|
||||||
|
@ -181,7 +182,7 @@ network:
|
||||||
description:
|
description:
|
||||||
- A reference to the network to which this router belongs.
|
- A reference to the network to which this router belongs.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
bgp:
|
bgp:
|
||||||
description:
|
description:
|
||||||
- BGP information specific to this router.
|
- BGP information specific to this router.
|
||||||
|
@ -258,7 +259,7 @@ def main():
|
||||||
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'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
network=dict(required=True),
|
network=dict(required=True, type='dict'),
|
||||||
bgp=dict(
|
bgp=dict(
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
|
|
|
@ -98,7 +98,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- A reference to the network to which this router belongs.
|
- A reference to the network to which this router belongs.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
bgp:
|
bgp:
|
||||||
description:
|
description:
|
||||||
- BGP information specific to this router.
|
- BGP information specific to this router.
|
||||||
|
|
|
@ -89,9 +89,10 @@ options:
|
||||||
- The network this subnet belongs to.
|
- The network this subnet belongs to.
|
||||||
- Only networks that are in the distributed mode can have subnetworks.
|
- Only networks that are in the distributed mode can have subnetworks.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
enable_flow_logs:
|
enable_flow_logs:
|
||||||
description:
|
description:
|
||||||
|
@ -206,7 +207,7 @@ network:
|
||||||
- The network this subnet belongs to.
|
- The network this subnet belongs to.
|
||||||
- Only networks that are in the distributed mode can have subnetworks.
|
- Only networks that are in the distributed mode can have subnetworks.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
enableFlowLogs:
|
enableFlowLogs:
|
||||||
description:
|
description:
|
||||||
- Whether to enable flow logging for this subnetwork.
|
- Whether to enable flow logging for this subnetwork.
|
||||||
|
@ -276,7 +277,7 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
ip_cidr_range=dict(required=True, type='str'),
|
ip_cidr_range=dict(required=True, type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(required=True),
|
network=dict(required=True, type='dict'),
|
||||||
enable_flow_logs=dict(type='bool'),
|
enable_flow_logs=dict(type='bool'),
|
||||||
secondary_ip_ranges=dict(
|
secondary_ip_ranges=dict(
|
||||||
type='list', elements='dict', options=dict(range_name=dict(required=True, type='str'), ip_cidr_range=dict(required=True, type='str'))
|
type='list', elements='dict', options=dict(range_name=dict(required=True, type='str'), ip_cidr_range=dict(required=True, type='str'))
|
||||||
|
|
|
@ -115,7 +115,7 @@ items:
|
||||||
- The network this subnet belongs to.
|
- The network this subnet belongs to.
|
||||||
- Only networks that are in the distributed mode can have subnetworks.
|
- Only networks that are in the distributed mode can have subnetworks.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
enableFlowLogs:
|
enableFlowLogs:
|
||||||
description:
|
description:
|
||||||
- Whether to enable flow logging for this subnetwork.
|
- Whether to enable flow logging for this subnetwork.
|
||||||
|
|
|
@ -66,9 +66,10 @@ options:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the
|
- A reference to the UrlMap resource that defines the mapping from URL to the
|
||||||
BackendService.
|
BackendService.
|
||||||
- 'This field represents a link to a UrlMap resource in GCP. It can be specified
|
- 'This field represents a link to a UrlMap resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_url_map
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this url_map field to "{{ name-of-resource }}"'
|
to a gcp_compute_url_map task and then set this url_map field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
|
@ -164,7 +165,7 @@ urlMap:
|
||||||
description:
|
description:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the BackendService.
|
- A reference to the UrlMap resource that defines the mapping from URL to the BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -188,7 +189,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
url_map=dict(required=True),
|
url_map=dict(required=True, type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ items:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the
|
- A reference to the UrlMap resource that defines the mapping from URL to the
|
||||||
BackendService.
|
BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -86,9 +86,10 @@ options:
|
||||||
resource. If not set, the TargetHttpsProxy resource will not have any SSL policy
|
resource. If not set, the TargetHttpsProxy resource will not have any SSL policy
|
||||||
configured.
|
configured.
|
||||||
- 'This field represents a link to a SslPolicy resource in GCP. It can be specified
|
- 'This field represents a link to a SslPolicy resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_ssl_policy
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this ssl_policy field to "{{ name-of-resource }}"'
|
to a gcp_compute_ssl_policy task and then set this ssl_policy field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
version_added: 2.8
|
version_added: 2.8
|
||||||
url_map:
|
url_map:
|
||||||
|
@ -96,9 +97,10 @@ options:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the
|
- A reference to the UrlMap resource that defines the mapping from URL to the
|
||||||
BackendService.
|
BackendService.
|
||||||
- 'This field represents a link to a UrlMap resource in GCP. It can be specified
|
- 'This field represents a link to a UrlMap resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_url_map
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this url_map field to "{{ name-of-resource }}"'
|
to a gcp_compute_url_map task and then set this url_map field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
|
@ -235,12 +237,12 @@ sslPolicy:
|
||||||
resource. If not set, the TargetHttpsProxy resource will not have any SSL policy
|
resource. If not set, the TargetHttpsProxy resource will not have any SSL policy
|
||||||
configured.
|
configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
urlMap:
|
urlMap:
|
||||||
description:
|
description:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the BackendService.
|
- A reference to the UrlMap resource that defines the mapping from URL to the BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -265,9 +267,9 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
quic_override=dict(type='str', choices=['NONE', 'ENABLE', 'DISABLE']),
|
quic_override=dict(type='str', choices=['NONE', 'ENABLE', 'DISABLE']),
|
||||||
ssl_certificates=dict(required=True, type='list'),
|
ssl_certificates=dict(required=True, type='list', elements='dict'),
|
||||||
ssl_policy=dict(),
|
ssl_policy=dict(type='dict'),
|
||||||
url_map=dict(required=True),
|
url_map=dict(required=True, type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -112,13 +112,13 @@ items:
|
||||||
resource. If not set, the TargetHttpsProxy resource will not have any SSL
|
resource. If not set, the TargetHttpsProxy resource will not have any SSL
|
||||||
policy configured.
|
policy configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
urlMap:
|
urlMap:
|
||||||
description:
|
description:
|
||||||
- A reference to the UrlMap resource that defines the mapping from URL to the
|
- A reference to the UrlMap resource that defines the mapping from URL to the
|
||||||
BackendService.
|
BackendService.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -61,9 +61,10 @@ options:
|
||||||
pool in the "force" mode, where traffic will be spread to the healthy instances
|
pool in the "force" mode, where traffic will be spread to the healthy instances
|
||||||
with the best effort, or to all instances when no instance is healthy.
|
with the best effort, or to all instances when no instance is healthy.
|
||||||
- 'This field represents a link to a TargetPool resource in GCP. It can be specified
|
- 'This field represents a link to a TargetPool resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_target_pool
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this backup_pool field to "{{ name-of-resource }}"'
|
to a gcp_compute_target_pool task and then set this backup_pool field to "{{
|
||||||
|
name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
|
@ -90,10 +91,10 @@ options:
|
||||||
checks pass. If not specified it means all member instances will be considered
|
checks pass. If not specified it means all member instances will be considered
|
||||||
healthy at all times.
|
healthy at all times.
|
||||||
- 'This field represents a link to a HttpHealthCheck resource in GCP. It can be
|
- 'This field represents a link to a HttpHealthCheck resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_http_health_check task and then set this health_check field to
|
name-of-resource` to a gcp_compute_http_health_check task and then set this
|
||||||
"{{ name-of-resource }}"'
|
health_check field to "{{ name-of-resource }}"'
|
||||||
required: false
|
required: false
|
||||||
instances:
|
instances:
|
||||||
description:
|
description:
|
||||||
|
@ -158,7 +159,7 @@ backupPool:
|
||||||
pool in the "force" mode, where traffic will be spread to the healthy instances
|
pool in the "force" mode, where traffic will be spread to the healthy instances
|
||||||
with the best effort, or to all instances when no instance is healthy.
|
with the best effort, or to all instances when no instance is healthy.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
|
@ -191,7 +192,7 @@ healthCheck:
|
||||||
checks pass. If not specified it means all member instances will be considered
|
checks pass. If not specified it means all member instances will be considered
|
||||||
healthy at all times.
|
healthy at all times.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
id:
|
id:
|
||||||
description:
|
description:
|
||||||
- The unique identifier for the resource.
|
- The unique identifier for the resource.
|
||||||
|
@ -249,11 +250,11 @@ def main():
|
||||||
module = GcpModule(
|
module = GcpModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
backup_pool=dict(),
|
backup_pool=dict(type='dict'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
failover_ratio=dict(type='str'),
|
failover_ratio=dict(type='str'),
|
||||||
health_check=dict(),
|
health_check=dict(type='dict'),
|
||||||
instances=dict(type='list'),
|
instances=dict(type='list', elements='dict'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
session_affinity=dict(type='str', choices=['NONE', 'CLIENT_IP', 'CLIENT_IP_PROTO']),
|
session_affinity=dict(type='str', choices=['NONE', 'CLIENT_IP', 'CLIENT_IP_PROTO']),
|
||||||
region=dict(required=True, type='str'),
|
region=dict(required=True, type='str'),
|
||||||
|
|
|
@ -84,7 +84,7 @@ items:
|
||||||
primary pool in the "force" mode, where traffic will be spread to the healthy
|
primary pool in the "force" mode, where traffic will be spread to the healthy
|
||||||
instances with the best effort, or to all instances when no instance is healthy.
|
instances with the best effort, or to all instances when no instance is healthy.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
|
@ -117,7 +117,7 @@ items:
|
||||||
checks pass. If not specified it means all member instances will be considered
|
checks pass. If not specified it means all member instances will be considered
|
||||||
healthy at all times.
|
healthy at all times.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
id:
|
id:
|
||||||
description:
|
description:
|
||||||
- The unique identifier for the resource.
|
- The unique identifier for the resource.
|
||||||
|
|
|
@ -73,10 +73,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_backend_service task and then set this service field to "{{ name-of-resource
|
name-of-resource` to a gcp_compute_backend_service task and then set this service
|
||||||
}}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
ssl_certificates:
|
ssl_certificates:
|
||||||
description:
|
description:
|
||||||
|
@ -90,9 +90,10 @@ options:
|
||||||
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
||||||
configured.
|
configured.
|
||||||
- 'This field represents a link to a SslPolicy resource in GCP. It can be specified
|
- 'This field represents a link to a SslPolicy resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_ssl_policy
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this ssl_policy field to "{{ name-of-resource }}"'
|
to a gcp_compute_ssl_policy task and then set this ssl_policy field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
version_added: 2.8
|
version_added: 2.8
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
|
@ -213,7 +214,7 @@ service:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sslCertificates:
|
sslCertificates:
|
||||||
description:
|
description:
|
||||||
- A list of SslCertificate resources that are used to authenticate connections between
|
- A list of SslCertificate resources that are used to authenticate connections between
|
||||||
|
@ -226,7 +227,7 @@ sslPolicy:
|
||||||
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
||||||
configured.
|
configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -251,9 +252,9 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
proxy_header=dict(type='str', choices=['NONE', 'PROXY_V1']),
|
proxy_header=dict(type='str', choices=['NONE', 'PROXY_V1']),
|
||||||
service=dict(required=True),
|
service=dict(required=True, type='dict'),
|
||||||
ssl_certificates=dict(required=True, type='list'),
|
ssl_certificates=dict(required=True, type='list', elements='dict'),
|
||||||
ssl_policy=dict(),
|
ssl_policy=dict(type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
sslCertificates:
|
sslCertificates:
|
||||||
description:
|
description:
|
||||||
- A list of SslCertificate resources that are used to authenticate connections
|
- A list of SslCertificate resources that are used to authenticate connections
|
||||||
|
@ -114,7 +114,7 @@ items:
|
||||||
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
resource. If not set, the TargetSslProxy resource will not have any SSL policy
|
||||||
configured.
|
configured.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -73,10 +73,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_backend_service task and then set this service field to "{{ name-of-resource
|
name-of-resource` to a gcp_compute_backend_service task and then set this service
|
||||||
}}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
|
@ -173,7 +173,7 @@ service:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -198,7 +198,7 @@ def main():
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
proxy_header=dict(type='str', choices=['NONE', 'PROXY_V1']),
|
proxy_header=dict(type='str', choices=['NONE', 'PROXY_V1']),
|
||||||
service=dict(required=True),
|
service=dict(required=True, type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource.
|
- A reference to the BackendService resource.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -65,9 +65,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The network this VPN gateway is accepting traffic for.
|
- The network this VPN gateway is accepting traffic for.
|
||||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_network
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this network field to "{{ name-of-resource }}"'
|
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
|
@ -139,7 +140,7 @@ network:
|
||||||
description:
|
description:
|
||||||
- The network this VPN gateway is accepting traffic for.
|
- The network this VPN gateway is accepting traffic for.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
tunnels:
|
tunnels:
|
||||||
description:
|
description:
|
||||||
- A list of references to VpnTunnel resources associated with this VPN gateway.
|
- A list of references to VpnTunnel resources associated with this VPN gateway.
|
||||||
|
@ -179,7 +180,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
network=dict(required=True),
|
network=dict(required=True, type='dict'),
|
||||||
region=dict(required=True, type='str'),
|
region=dict(required=True, type='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -99,7 +99,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The network this VPN gateway is accepting traffic for.
|
- The network this VPN gateway is accepting traffic for.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
tunnels:
|
tunnels:
|
||||||
description:
|
description:
|
||||||
- A list of references to VpnTunnel resources associated with this VPN gateway.
|
- A list of references to VpnTunnel resources associated with this VPN gateway.
|
||||||
|
|
|
@ -52,10 +52,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- A reference to BackendService resource if none of the hostRules match.
|
- A reference to BackendService resource if none of the hostRules match.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can be
|
- 'This field represents a link to a BackendService resource in GCP. It can be
|
||||||
specified in two ways. First, you can place in the selfLink of the resource
|
specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_backend_service task and then set this default_service field to
|
name-of-resource` to a gcp_compute_backend_service task and then set this default_service
|
||||||
"{{ name-of-resource }}"'
|
field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
|
@ -102,10 +102,10 @@ options:
|
||||||
- A reference to a BackendService resource. This will be used if none of the
|
- A reference to a BackendService resource. This will be used if none of the
|
||||||
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can
|
- 'This field represents a link to a BackendService resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the resource
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
to a gcp_compute_backend_service task and then set this default_service
|
name-of-resource` to a gcp_compute_backend_service task and then set this
|
||||||
field to "{{ name-of-resource }}"'
|
default_service field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
|
@ -131,10 +131,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource if this rule is matched.
|
- A reference to the BackendService resource if this rule is matched.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It
|
- 'This field represents a link to a BackendService resource in GCP. It
|
||||||
can be specified in two ways. First, you can place in the selfLink of
|
can be specified in two ways. First, you can place a dictionary with
|
||||||
the resource here as a string Alternatively, you can add `register:
|
key ''selfLink'' and value of your resource''s selfLink Alternatively,
|
||||||
name-of-resource` to a gcp_compute_backend_service task and then set
|
you can add `register: name-of-resource` to a gcp_compute_backend_service
|
||||||
this service field to "{{ name-of-resource }}"'
|
task and then set this service field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
tests:
|
tests:
|
||||||
description:
|
description:
|
||||||
|
@ -159,10 +159,10 @@ options:
|
||||||
- A reference to expected BackendService resource the given URL should be
|
- A reference to expected BackendService resource the given URL should be
|
||||||
mapped to.
|
mapped to.
|
||||||
- 'This field represents a link to a BackendService resource in GCP. It can
|
- 'This field represents a link to a BackendService resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the resource
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource`
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
to a gcp_compute_backend_service task and then set this service field to
|
name-of-resource` to a gcp_compute_backend_service task and then set this
|
||||||
"{{ name-of-resource }}"'
|
service field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
@ -225,7 +225,7 @@ defaultService:
|
||||||
description:
|
description:
|
||||||
- A reference to BackendService resource if none of the hostRules match.
|
- A reference to BackendService resource if none of the hostRules match.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- An optional description of this resource. Provide this property when you create
|
- An optional description of this resource. Provide this property when you create
|
||||||
|
@ -289,7 +289,7 @@ pathMatchers:
|
||||||
- A reference to a BackendService resource. This will be used if none of the
|
- A reference to a BackendService resource. This will be used if none of the
|
||||||
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
pathRules defined by this PathMatcher is matched by the URL's path portion.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- An optional description of this resource.
|
- An optional description of this resource.
|
||||||
|
@ -318,7 +318,7 @@ pathMatchers:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource if this rule is matched.
|
- A reference to the BackendService resource if this rule is matched.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
tests:
|
tests:
|
||||||
description:
|
description:
|
||||||
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
||||||
|
@ -346,7 +346,7 @@ tests:
|
||||||
- A reference to expected BackendService resource the given URL should be mapped
|
- A reference to expected BackendService resource the given URL should be mapped
|
||||||
to.
|
to.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -368,7 +368,7 @@ def main():
|
||||||
module = GcpModule(
|
module = GcpModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
default_service=dict(required=True),
|
default_service=dict(required=True, type='dict'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
host_rules=dict(
|
host_rules=dict(
|
||||||
type='list',
|
type='list',
|
||||||
|
@ -382,11 +382,13 @@ def main():
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
default_service=dict(required=True),
|
default_service=dict(required=True, type='dict'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
path_rules=dict(
|
path_rules=dict(
|
||||||
type='list', elements='dict', options=dict(paths=dict(required=True, type='list', elements='str'), service=dict(required=True))
|
type='list',
|
||||||
|
elements='dict',
|
||||||
|
options=dict(paths=dict(required=True, type='list', elements='str'), service=dict(required=True, type='dict')),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -394,7 +396,10 @@ def main():
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
description=dict(type='str'), host=dict(required=True, type='str'), path=dict(required=True, type='str'), service=dict(required=True)
|
description=dict(type='str'),
|
||||||
|
host=dict(required=True, type='str'),
|
||||||
|
path=dict(required=True, type='str'),
|
||||||
|
service=dict(required=True, type='dict'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -74,7 +74,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- A reference to BackendService resource if none of the hostRules match.
|
- A reference to BackendService resource if none of the hostRules match.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- An optional description of this resource. Provide this property when you create
|
- An optional description of this resource. Provide this property when you create
|
||||||
|
@ -139,7 +139,7 @@ items:
|
||||||
the pathRules defined by this PathMatcher is matched by the URL's path
|
the pathRules defined by this PathMatcher is matched by the URL's path
|
||||||
portion.
|
portion.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- An optional description of this resource.
|
- An optional description of this resource.
|
||||||
|
@ -168,7 +168,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- A reference to the BackendService resource if this rule is matched.
|
- A reference to the BackendService resource if this rule is matched.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
tests:
|
tests:
|
||||||
description:
|
description:
|
||||||
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
- The list of expected URL mappings. Requests to update this UrlMap will succeed
|
||||||
|
@ -196,7 +196,7 @@ items:
|
||||||
- A reference to expected BackendService resource the given URL should be
|
- A reference to expected BackendService resource the given URL should be
|
||||||
mapped to.
|
mapped to.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -63,18 +63,19 @@ options:
|
||||||
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.
|
||||||
- 'This field represents a link to a TargetVpnGateway resource in GCP. It can
|
- 'This field represents a link to a TargetVpnGateway resource in GCP. It can
|
||||||
be specified in two ways. First, you can place in the selfLink of the resource
|
be specified in two ways. First, you can place a dictionary with key ''selfLink''
|
||||||
here as a string Alternatively, you can add `register: name-of-resource` to
|
and value of your resource''s selfLink Alternatively, you can add `register:
|
||||||
a gcp_compute_target_vpn_gateway task and then set this target_vpn_gateway field
|
name-of-resource` to a gcp_compute_target_vpn_gateway task and then set this
|
||||||
to "{{ name-of-resource }}"'
|
target_vpn_gateway field to "{{ name-of-resource }}"'
|
||||||
required: true
|
required: true
|
||||||
router:
|
router:
|
||||||
description:
|
description:
|
||||||
- URL of router resource to be used for dynamic routing.
|
- URL of router resource to be used for dynamic routing.
|
||||||
- 'This field represents a link to a Router resource in GCP. It can be specified
|
- 'This field represents a link to a Router resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the selfLink of the resource here as a
|
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_compute_router
|
of your resource''s selfLink Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this router field to "{{ name-of-resource }}"'
|
to a gcp_compute_router task and then set this router field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: false
|
required: false
|
||||||
peer_ip:
|
peer_ip:
|
||||||
description:
|
description:
|
||||||
|
@ -193,12 +194,12 @@ targetVpnGateway:
|
||||||
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.
|
||||||
|
@ -265,8 +266,8 @@ def main():
|
||||||
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'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
target_vpn_gateway=dict(required=True),
|
target_vpn_gateway=dict(required=True, type='dict'),
|
||||||
router=dict(),
|
router=dict(type='dict'),
|
||||||
peer_ip=dict(required=True, type='str'),
|
peer_ip=dict(required=True, type='str'),
|
||||||
shared_secret=dict(required=True, type='str'),
|
shared_secret=dict(required=True, type='str'),
|
||||||
ike_version=dict(default=2, type='int'),
|
ike_version=dict(default=2, type='int'),
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -63,9 +63,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The instance to create the database on.
|
- The instance to create the database on.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_spanner_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_spanner_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
|
@ -117,7 +118,7 @@ instance:
|
||||||
description:
|
description:
|
||||||
- The instance to create the database on.
|
- The instance to create the database on.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -140,7 +141,7 @@ def main():
|
||||||
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'),
|
||||||
extra_statements=dict(type='list', elements='str'),
|
extra_statements=dict(type='list', elements='str'),
|
||||||
instance=dict(required=True),
|
instance=dict(required=True, type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -44,9 +44,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The instance to create the database on.
|
- The instance to create the database on.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_spanner_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_spanner_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
@ -85,7 +86,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The instance to create the database on.
|
- The instance to create the database on.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -100,7 +101,7 @@ import json
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = GcpModule(argument_spec=dict(instance=dict(required=True)))
|
module = GcpModule(argument_spec=dict(instance=dict(required=True, type='dict')))
|
||||||
|
|
||||||
if not module.params['scopes']:
|
if not module.params['scopes']:
|
||||||
module.params['scopes'] = ['https://www.googleapis.com/auth/spanner.admin']
|
module.params['scopes'] = ['https://www.googleapis.com/auth/spanner.admin']
|
||||||
|
|
|
@ -64,9 +64,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_sql_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_sql_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
@ -120,7 +121,7 @@ instance:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -145,7 +146,7 @@ def main():
|
||||||
charset=dict(type='str'),
|
charset=dict(type='str'),
|
||||||
collation=dict(type='str'),
|
collation=dict(type='str'),
|
||||||
name=dict(type='str'),
|
name=dict(type='str'),
|
||||||
instance=dict(required=True),
|
instance=dict(required=True, type='dict'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -44,9 +44,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_sql_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_sql_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
@ -87,7 +88,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -102,7 +103,7 @@ import json
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = GcpModule(argument_spec=dict(instance=dict(required=True)))
|
module = GcpModule(argument_spec=dict(instance=dict(required=True, type='dict')))
|
||||||
|
|
||||||
if not module.params['scopes']:
|
if not module.params['scopes']:
|
||||||
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
||||||
|
|
|
@ -61,9 +61,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_sql_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_sql_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
|
@ -118,7 +119,7 @@ instance:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- The password for the user.
|
- The password for the user.
|
||||||
|
@ -147,7 +148,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
host=dict(required=True, type='str'),
|
host=dict(required=True, type='str'),
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
instance=dict(required=True),
|
instance=dict(required=True, type='dict'),
|
||||||
password=dict(type='str'),
|
password=dict(type='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -44,9 +44,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
- 'This field represents a link to a Instance resource in GCP. It can be specified
|
- 'This field represents a link to a Instance 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_sql_instance
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this instance field to "{{ name-of-resource }}"'
|
to a gcp_sql_instance task and then set this instance field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
@ -83,7 +84,7 @@ items:
|
||||||
description:
|
description:
|
||||||
- The name of the Cloud SQL instance. This does not include the project ID.
|
- The name of the Cloud SQL instance. This does not include the project ID.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- The password for the user.
|
- The password for the user.
|
||||||
|
@ -103,7 +104,7 @@ import json
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = GcpModule(argument_spec=dict(instance=dict(required=True)))
|
module = GcpModule(argument_spec=dict(instance=dict(required=True, type='dict')))
|
||||||
|
|
||||||
if not module.params['scopes']:
|
if not module.params['scopes']:
|
||||||
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
module.params['scopes'] = ['https://www.googleapis.com/auth/sqlservice.admin']
|
||||||
|
|
|
@ -61,9 +61,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
- 'This field represents a link to a Bucket resource in GCP. It can be specified
|
- 'This field represents a link to a Bucket resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the name of the resource here as a
|
in two ways. First, you can place a dictionary with key ''name'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_storage_bucket
|
of your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this bucket field to "{{ name-of-resource }}"'
|
to a gcp_storage_bucket task and then set this bucket field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
entity:
|
entity:
|
||||||
description:
|
description:
|
||||||
|
@ -140,9 +141,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
- 'This field represents a link to a Bucket resource in GCP. It can be specified
|
- 'This field represents a link to a Bucket resource in GCP. It can be specified
|
||||||
in two ways. First, you can place in the name of the resource here as a
|
in two ways. First, you can place a dictionary with key ''name'' and value
|
||||||
string Alternatively, you can add `register: name-of-resource` to a gcp_storage_bucket
|
of your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this bucket field to "{{ name-of-resource }}"'
|
to a gcp_storage_bucket task and then set this bucket field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
entity:
|
entity:
|
||||||
description:
|
description:
|
||||||
|
@ -359,7 +361,7 @@ acl:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- The domain associated with the entity.
|
- The domain associated with the entity.
|
||||||
|
@ -453,7 +455,7 @@ defaultObjectAcl:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- The domain associated with the entity.
|
- The domain associated with the entity.
|
||||||
|
@ -740,7 +742,7 @@ def main():
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
bucket=dict(required=True),
|
bucket=dict(required=True, type='dict'),
|
||||||
entity=dict(required=True, type='str'),
|
entity=dict(required=True, type='str'),
|
||||||
entity_id=dict(type='str'),
|
entity_id=dict(type='str'),
|
||||||
project_team=dict(
|
project_team=dict(
|
||||||
|
@ -763,7 +765,7 @@ def main():
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
bucket=dict(required=True),
|
bucket=dict(required=True, type='dict'),
|
||||||
entity=dict(required=True, type='str'),
|
entity=dict(required=True, type='str'),
|
||||||
object=dict(type='str'),
|
object=dict(type='str'),
|
||||||
role=dict(required=True, type='str', choices=['OWNER', 'READER']),
|
role=dict(required=True, type='str', choices=['OWNER', 'READER']),
|
||||||
|
|
|
@ -60,9 +60,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
- 'This field represents a link to a Bucket resource in GCP. It can be specified
|
- 'This field represents a link to a Bucket 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_storage_bucket
|
your resource''s name Alternatively, you can add `register: name-of-resource`
|
||||||
task and then set this bucket field to "{{ name-of-resource }}"'
|
to a gcp_storage_bucket task and then set this bucket field to "{{ name-of-resource
|
||||||
|
}}"'
|
||||||
required: true
|
required: true
|
||||||
entity:
|
entity:
|
||||||
description:
|
description:
|
||||||
|
@ -131,7 +132,7 @@ bucket:
|
||||||
description:
|
description:
|
||||||
- The name of the bucket.
|
- The name of the bucket.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: dict
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- The domain associated with the entity.
|
- The domain associated with the entity.
|
||||||
|
@ -203,7 +204,7 @@ def main():
|
||||||
module = GcpModule(
|
module = GcpModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
bucket=dict(required=True),
|
bucket=dict(required=True, type='dict'),
|
||||||
entity=dict(required=True, type='str'),
|
entity=dict(required=True, type='str'),
|
||||||
entity_id=dict(type='str'),
|
entity_id=dict(type='str'),
|
||||||
project_team=dict(type='dict', options=dict(project_number=dict(type='str'), team=dict(type='str', choices=['editors', 'owners', 'viewers']))),
|
project_team=dict(type='dict', options=dict(project_number=dict(type='str'), team=dict(type='str', choices=['editors', 'owners', 'viewers']))),
|
||||||
|
|
Loading…
Add table
Reference in a new issue