mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-09-30 05:23:29 -07:00
examples showing an improper auth value (#87)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
9782d6906b
commit
0a18332815
98 changed files with 2171 additions and 1727 deletions
|
@ -89,9 +89,10 @@ options:
|
|||
- The network this subnet belongs to.
|
||||
- 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
|
||||
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 }}"'
|
||||
in two ways. First, you can place a dictionary with key ''selfLink'' and value
|
||||
of your resource''s selfLink 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: true
|
||||
enable_flow_logs:
|
||||
description:
|
||||
|
@ -122,8 +123,8 @@ options:
|
|||
required: true
|
||||
private_ip_google_access:
|
||||
description:
|
||||
- Whether the VMs in this subnet can access Google services without assigned external
|
||||
IP addresses.
|
||||
- When enabled, VMs in this subnetwork without external IP addresses can access
|
||||
Google APIs and services by using Private Google Access.
|
||||
required: false
|
||||
type: bool
|
||||
region:
|
||||
|
@ -140,12 +141,12 @@ notes:
|
|||
EXAMPLES = '''
|
||||
- name: create a network
|
||||
gcp_compute_network:
|
||||
name: "network-subnetwork"
|
||||
auto_create_subnetworks: true
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
name: network-subnetwork
|
||||
auto_create_subnetworks: 'true'
|
||||
project: "{{ gcp_project }}"
|
||||
auth_kind: "{{ gcp_cred_kind }}"
|
||||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: network
|
||||
|
||||
- name: create a subnetwork
|
||||
|
@ -206,7 +207,7 @@ network:
|
|||
- The network this subnet belongs to.
|
||||
- Only networks that are in the distributed mode can have subnetworks.
|
||||
returned: success
|
||||
type: str
|
||||
type: dict
|
||||
enableFlowLogs:
|
||||
description:
|
||||
- Whether to enable flow logging for this subnetwork.
|
||||
|
@ -243,8 +244,8 @@ secondaryIpRanges:
|
|||
type: str
|
||||
privateIpGoogleAccess:
|
||||
description:
|
||||
- Whether the VMs in this subnet can access Google services without assigned external
|
||||
IP addresses.
|
||||
- When enabled, VMs in this subnetwork without external IP addresses can access
|
||||
Google APIs and services by using Private Google Access.
|
||||
returned: success
|
||||
type: bool
|
||||
region:
|
||||
|
@ -276,7 +277,7 @@ def main():
|
|||
description=dict(type='str'),
|
||||
ip_cidr_range=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'),
|
||||
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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue