mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-08 20:00:29 -07:00
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
93b2e441a5
commit
a7dd28caed
2 changed files with 21 additions and 0 deletions
|
@ -89,6 +89,12 @@ options:
|
||||||
- 'Some valid choices include: "REGIONAL", "GLOBAL"'
|
- 'Some valid choices include: "REGIONAL", "GLOBAL"'
|
||||||
required: true
|
required: true
|
||||||
type: str
|
type: str
|
||||||
|
mtu:
|
||||||
|
description:
|
||||||
|
- Maximum Transmission Unit in bytes. The minimum value for this field is 1460
|
||||||
|
and the maximum value is 1500 bytes.
|
||||||
|
required: false
|
||||||
|
type: int
|
||||||
project:
|
project:
|
||||||
description:
|
description:
|
||||||
- The Google Cloud Platform project to use.
|
- The Google Cloud Platform project to use.
|
||||||
|
@ -215,6 +221,12 @@ routingConfig:
|
||||||
regions.
|
regions.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
mtu:
|
||||||
|
description:
|
||||||
|
- Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and
|
||||||
|
the maximum value is 1500 bytes.
|
||||||
|
returned: success
|
||||||
|
type: int
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -247,6 +259,7 @@ def main():
|
||||||
name=dict(required=True, type='str'),
|
name=dict(required=True, type='str'),
|
||||||
auto_create_subnetworks=dict(type='bool'),
|
auto_create_subnetworks=dict(type='bool'),
|
||||||
routing_config=dict(type='dict', options=dict(routing_mode=dict(required=True, type='str'))),
|
routing_config=dict(type='dict', options=dict(routing_mode=dict(required=True, type='str'))),
|
||||||
|
mtu=dict(type='int'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -316,6 +329,7 @@ def resource_to_request(module):
|
||||||
u'name': module.params.get('name'),
|
u'name': module.params.get('name'),
|
||||||
u'autoCreateSubnetworks': module.params.get('auto_create_subnetworks'),
|
u'autoCreateSubnetworks': module.params.get('auto_create_subnetworks'),
|
||||||
u'routingConfig': NetworkRoutingconfig(module.params.get('routing_config', {}), module).to_request(),
|
u'routingConfig': NetworkRoutingconfig(module.params.get('routing_config', {}), module).to_request(),
|
||||||
|
u'mtu': module.params.get('mtu'),
|
||||||
}
|
}
|
||||||
return_vals = {}
|
return_vals = {}
|
||||||
for k, v in request.items():
|
for k, v in request.items():
|
||||||
|
@ -389,6 +403,7 @@ def response_to_hash(module, response):
|
||||||
u'autoCreateSubnetworks': module.params.get('auto_create_subnetworks'),
|
u'autoCreateSubnetworks': module.params.get('auto_create_subnetworks'),
|
||||||
u'creationTimestamp': response.get(u'creationTimestamp'),
|
u'creationTimestamp': response.get(u'creationTimestamp'),
|
||||||
u'routingConfig': NetworkRoutingconfig(response.get(u'routingConfig', {}), module).from_response(),
|
u'routingConfig': NetworkRoutingconfig(response.get(u'routingConfig', {}), module).from_response(),
|
||||||
|
u'mtu': module.params.get('mtu'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -175,6 +175,12 @@ resources:
|
||||||
regions.
|
regions.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
|
mtu:
|
||||||
|
description:
|
||||||
|
- Maximum Transmission Unit in bytes. The minimum value for this field is 1460
|
||||||
|
and the maximum value is 1500 bytes.
|
||||||
|
returned: success
|
||||||
|
type: int
|
||||||
'''
|
'''
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue