Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions plugins/modules/gcp_compute_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,11 @@
.
returned: success
type: dict
stack_type:
description:
- The IP stack type of the network, possible values: (IPV4_IPV6, IPV4_ONLY)
returned: success
type: str
networkIP:
description:
- An IPv4 internal network address to assign to the instance for this network
Expand Down Expand Up @@ -1187,6 +1192,7 @@
network=dict(type='dict'),
network_ip=dict(type='str'),
subnetwork=dict(type='dict'),
stack_type=dict(type='str'),

Check warning on line 1195 in plugins/modules/gcp_compute_instance.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=ansible-collections_google.cloud&issues=AZ53abbn5WQG7-EhqPyC&open=AZ53abbn5WQG7-EhqPyC&pullRequest=638
nic_type=dict(type='str', choices=['VIRTIO_NET', 'GVNIC']),
),
),
Expand All @@ -1199,7 +1205,7 @@
),
confidential_instance_config=dict(type='dict', options=dict(enable_confidential_compute=dict(type='bool'))),
status=dict(type='str'),
tags=dict(type='dict', options=dict(fingerprint=dict(type='str'), items=dict(type='list', elements='str'))),

Check warning on line 1208 in plugins/modules/gcp_compute_instance.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=ansible-collections_google.cloud&issues=AZ53abbn5WQG7-EhqPyG&open=AZ53abbn5WQG7-EhqPyG&pullRequest=638

Check warning on line 1208 in plugins/modules/gcp_compute_instance.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=ansible-collections_google.cloud&issues=AZ53abbn5WQG7-EhqPyF&open=AZ53abbn5WQG7-EhqPyF&pullRequest=638

Check warning on line 1208 in plugins/modules/gcp_compute_instance.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=ansible-collections_google.cloud&issues=AZ53abbn5WQG7-EhqPyD&open=AZ53abbn5WQG7-EhqPyD&pullRequest=638

Check warning on line 1208 in plugins/modules/gcp_compute_instance.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=ansible-collections_google.cloud&issues=AZ53abbn5WQG7-EhqPyE&open=AZ53abbn5WQG7-EhqPyE&pullRequest=638
zone=dict(required=True, type='str'),
)
)
Expand Down Expand Up @@ -1756,6 +1762,7 @@
u'aliasIpRanges': InstanceAliasiprangesArray(item.get('alias_ip_ranges', []), self.module).to_request(),
u'network': replace_resource_dict(item.get(u'network', {}), 'selfLink'),
u'networkIP': item.get('network_ip'),
u'stackType': item.get('stack_type'),
u'subnetwork': replace_resource_dict(item.get(u'subnetwork', {}), 'selfLink'),
u'nicType': item.get('nic_type'),
}
Expand All @@ -1768,6 +1775,7 @@
u'aliasIpRanges': InstanceAliasiprangesArray(item.get(u'aliasIpRanges', []), self.module).from_response(),
u'network': item.get(u'network'),
u'networkIP': item.get(u'networkIP'),
u'stackType': item.get('stackType'),
u'subnetwork': item.get(u'subnetwork'),
u'nicType': item.get(u'nicType'),
}
Expand Down