mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-27 23:21:31 -07:00
Better resourceref flexibility (#149)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
3496923252
commit
982933cfe8
64 changed files with 569 additions and 526 deletions
|
@ -211,10 +211,10 @@ options:
|
|||
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
||||
the disk.
|
||||
- 'This field represents a link to a Disk resource in GCP. It can be specified
|
||||
in two ways. You can add `register: name-of-resource` to a gcp_compute_disk
|
||||
task and then set this source field to "{{ name-of-resource }}" Alternatively,
|
||||
you can set this source to a dictionary with the name key where the
|
||||
value is the name of your Disk'
|
||||
in two ways. First, you can place in the name of the resource here as
|
||||
a string Alternatively, you can add `register: name-of-resource` to
|
||||
a gcp_compute_disk task and then set this source field to "{{ name-of-resource
|
||||
}}"'
|
||||
required: false
|
||||
type:
|
||||
description:
|
||||
|
@ -283,11 +283,10 @@ options:
|
|||
IP address pool. If you specify a static external IP address, it
|
||||
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
|
||||
be specified in two ways. You can add `register: name-of-resource`
|
||||
to a gcp_compute_address task and then set this nat_ip field to
|
||||
"{{ name-of-resource }}" Alternatively, you can set this nat_ip
|
||||
to a dictionary with the address key where the value is the address
|
||||
of your Address'
|
||||
be specified in two ways. First, you can place in the address of
|
||||
the resource here as a string Alternatively, you can add `register:
|
||||
name-of-resource` to a gcp_compute_address task and then set this
|
||||
nat_ip field to "{{ name-of-resource }}"'
|
||||
required: false
|
||||
type:
|
||||
description:
|
||||
|
@ -328,10 +327,10 @@ options:
|
|||
default network global/networks/default is used; if the network is not
|
||||
specified but the subnetwork is specified, the network is inferred.
|
||||
- 'This field represents a link to a Network resource in GCP. It can be
|
||||
specified in two ways. You can add `register: name-of-resource` to a
|
||||
gcp_compute_network task and then set this network field to "{{ name-of-resource
|
||||
}}" Alternatively, you can set this network to a dictionary with the
|
||||
selfLink key where the value is the selfLink of your Network'
|
||||
specified in two ways. First, you can place in the selfLink of the resource
|
||||
here as a string Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_compute_network task and then set this network field to "{{
|
||||
name-of-resource }}"'
|
||||
required: false
|
||||
network_ip:
|
||||
description:
|
||||
|
@ -346,11 +345,10 @@ options:
|
|||
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.
|
||||
- 'This field represents a link to a Subnetwork resource in GCP. It can
|
||||
be specified in two ways. You can add `register: name-of-resource` to
|
||||
a gcp_compute_subnetwork task and then set this subnetwork field to
|
||||
"{{ name-of-resource }}" Alternatively, you can set this subnetwork
|
||||
to a dictionary with the selfLink key where the value is the selfLink
|
||||
of your Subnetwork'
|
||||
be specified in two ways. First, you can place in the selfLink of the
|
||||
resource here as a string Alternatively, you can add `register: name-of-resource`
|
||||
to a gcp_compute_subnetwork task and then set this subnetwork field
|
||||
to "{{ name-of-resource }}"'
|
||||
required: false
|
||||
scheduling:
|
||||
description:
|
||||
|
@ -643,7 +641,7 @@ properties:
|
|||
- Note that for InstanceTemplate, specify the disk name, not the URL for
|
||||
the disk.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
type:
|
||||
description:
|
||||
- Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified,
|
||||
|
@ -716,7 +714,7 @@ properties:
|
|||
IP address pool. If you specify a static external IP address, it must
|
||||
live in the same region as the zone of the instance.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
type:
|
||||
description:
|
||||
- The type of configuration. The default and only option is ONE_TO_ONE_NAT.
|
||||
|
@ -758,7 +756,7 @@ properties:
|
|||
default network global/networks/default is used; if the network is not
|
||||
specified but the subnetwork is specified, the network is inferred.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
networkIP:
|
||||
description:
|
||||
- An IPv4 internal network address to assign to the instance for this network
|
||||
|
@ -773,7 +771,7 @@ properties:
|
|||
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.
|
||||
returned: success
|
||||
type: dict
|
||||
type: str
|
||||
scheduling:
|
||||
description:
|
||||
- Sets the scheduling options for this instance.
|
||||
|
@ -893,7 +891,7 @@ def main():
|
|||
)),
|
||||
interface=dict(type='str', choices=['SCSI', 'NVME']),
|
||||
mode=dict(type='str', choices=['READ_WRITE', 'READ_ONLY']),
|
||||
source=dict(type='dict'),
|
||||
source=dict(),
|
||||
type=dict(type='str', choices=['SCRATCH', 'PERSISTENT'])
|
||||
)),
|
||||
machine_type=dict(required=True, type='str'),
|
||||
|
@ -906,7 +904,7 @@ def main():
|
|||
network_interfaces=dict(type='list', elements='dict', options=dict(
|
||||
access_configs=dict(type='list', elements='dict', options=dict(
|
||||
name=dict(required=True, type='str'),
|
||||
nat_ip=dict(type='dict'),
|
||||
nat_ip=dict(),
|
||||
type=dict(required=True, type='str', choices=['ONE_TO_ONE_NAT'])
|
||||
)),
|
||||
alias_ip_ranges=dict(type='list', elements='dict', options=dict(
|
||||
|
@ -914,9 +912,9 @@ def main():
|
|||
subnetwork_range_name=dict(type='str')
|
||||
)),
|
||||
name=dict(type='str'),
|
||||
network=dict(type='dict'),
|
||||
network=dict(),
|
||||
network_ip=dict(type='str'),
|
||||
subnetwork=dict(type='dict')
|
||||
subnetwork=dict()
|
||||
)),
|
||||
scheduling=dict(type='dict', options=dict(
|
||||
automatic_restart=dict(type='bool'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue