Bug fixes for GCP modules (#54762)

pull/54802/head
The Magician 6 years ago committed by ansibot
parent bb1704c360
commit ddc2adc0ac

@ -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.

Loading…
Cancel
Save