|
|
@ -316,6 +316,32 @@ options:
|
|
|
|
- 'Some valid choices include: "ONE_TO_ONE_NAT"'
|
|
|
|
- 'Some valid choices include: "ONE_TO_ONE_NAT"'
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
|
|
|
|
set_public_ptr:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Specifies whether a public DNS PTR record should be created to map
|
|
|
|
|
|
|
|
the external IP address of the instance to a DNS domain name.
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
|
|
|
|
version_added: '2.10'
|
|
|
|
|
|
|
|
public_ptr_domain_name:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- The DNS domain name for the public PTR record. You can set this
|
|
|
|
|
|
|
|
field only if the setPublicPtr field is enabled.
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
version_added: '2.10'
|
|
|
|
|
|
|
|
network_tier:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- This signifies the networking tier used for configuring this access
|
|
|
|
|
|
|
|
configuration. If an AccessConfig is specified without a valid external
|
|
|
|
|
|
|
|
IP address, an ephemeral IP will be created with this networkTier.
|
|
|
|
|
|
|
|
If an AccessConfig with a valid external IP address is specified,
|
|
|
|
|
|
|
|
it must match that of the networkTier associated with the Address
|
|
|
|
|
|
|
|
resource owning that IP.
|
|
|
|
|
|
|
|
- 'Some valid choices include: "PREMIUM", "STANDARD"'
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
version_added: '2.10'
|
|
|
|
alias_ip_ranges:
|
|
|
|
alias_ip_ranges:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- An array of alias IP ranges for this network interface. Can only be
|
|
|
|
- An array of alias IP ranges for this network interface. Can only be
|
|
|
@ -792,6 +818,28 @@ properties:
|
|
|
|
- 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.
|
|
|
|
returned: success
|
|
|
|
returned: success
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
|
|
|
|
setPublicPtr:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Specifies whether a public DNS PTR record should be created to map
|
|
|
|
|
|
|
|
the external IP address of the instance to a DNS domain name.
|
|
|
|
|
|
|
|
returned: success
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
|
|
|
|
publicPtrDomainName:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- The DNS domain name for the public PTR record. You can set this field
|
|
|
|
|
|
|
|
only if the setPublicPtr field is enabled.
|
|
|
|
|
|
|
|
returned: success
|
|
|
|
|
|
|
|
type: str
|
|
|
|
|
|
|
|
networkTier:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- This signifies the networking tier used for configuring this access
|
|
|
|
|
|
|
|
configuration. If an AccessConfig is specified without a valid external
|
|
|
|
|
|
|
|
IP address, an ephemeral IP will be created with this networkTier.
|
|
|
|
|
|
|
|
If an AccessConfig with a valid external IP address is specified,
|
|
|
|
|
|
|
|
it must match that of the networkTier associated with the Address
|
|
|
|
|
|
|
|
resource owning that IP.
|
|
|
|
|
|
|
|
returned: success
|
|
|
|
|
|
|
|
type: str
|
|
|
|
aliasIpRanges:
|
|
|
|
aliasIpRanges:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- An array of alias IP ranges for this network interface. Can only be specified
|
|
|
|
- An array of alias IP ranges for this network interface. Can only be specified
|
|
|
@ -980,7 +1028,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'), type=dict(required=True, type='str')),
|
|
|
|
options=dict(
|
|
|
|
|
|
|
|
name=dict(required=True, type='str'),
|
|
|
|
|
|
|
|
nat_ip=dict(type='dict'),
|
|
|
|
|
|
|
|
type=dict(required=True, type='str'),
|
|
|
|
|
|
|
|
set_public_ptr=dict(type='bool'),
|
|
|
|
|
|
|
|
public_ptr_domain_name=dict(type='str'),
|
|
|
|
|
|
|
|
network_tier=dict(type='str'),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
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'))
|
|
|
@ -1483,11 +1538,27 @@ class InstanceTemplateAccessconfigsArray(object):
|
|
|
|
|
|
|
|
|
|
|
|
def _request_for_item(self, item):
|
|
|
|
def _request_for_item(self, item):
|
|
|
|
return remove_nones_from_dict(
|
|
|
|
return remove_nones_from_dict(
|
|
|
|
{u'name': item.get('name'), u'natIP': replace_resource_dict(item.get(u'nat_ip', {}), 'address'), u'type': item.get('type')}
|
|
|
|
{
|
|
|
|
|
|
|
|
u'name': item.get('name'),
|
|
|
|
|
|
|
|
u'natIP': replace_resource_dict(item.get(u'nat_ip', {}), 'address'),
|
|
|
|
|
|
|
|
u'type': item.get('type'),
|
|
|
|
|
|
|
|
u'setPublicPtr': item.get('set_public_ptr'),
|
|
|
|
|
|
|
|
u'publicPtrDomainName': item.get('public_ptr_domain_name'),
|
|
|
|
|
|
|
|
u'networkTier': item.get('network_tier'),
|
|
|
|
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def _response_from_item(self, item):
|
|
|
|
def _response_from_item(self, item):
|
|
|
|
return remove_nones_from_dict({u'name': item.get(u'name'), u'natIP': item.get(u'natIP'), u'type': item.get(u'type')})
|
|
|
|
return remove_nones_from_dict(
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
u'name': item.get(u'name'),
|
|
|
|
|
|
|
|
u'natIP': item.get(u'natIP'),
|
|
|
|
|
|
|
|
u'type': item.get(u'type'),
|
|
|
|
|
|
|
|
u'setPublicPtr': item.get(u'setPublicPtr'),
|
|
|
|
|
|
|
|
u'publicPtrDomainName': item.get(u'publicPtrDomainName'),
|
|
|
|
|
|
|
|
u'networkTier': item.get(u'networkTier'),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InstanceTemplateAliasiprangesArray(object):
|
|
|
|
class InstanceTemplateAliasiprangesArray(object):
|
|
|
|