Bug fixes for GCP modules (#58107)

pull/58153/head
The Magician 5 years ago committed by ansibot
parent ddf6d096c5
commit 28b67d809f

@ -105,8 +105,8 @@ options:
description: description:
- The max number of simultaneous connections for the group. Can be used with - The max number of simultaneous connections for the group. Can be used with
either CONNECTION or UTILIZATION balancing modes. either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerInstance - For CONNECTION mode, either maxConnections or one of maxConnectionsPerInstance
must be set. or maxConnectionsPerEndpoint, as appropriate for group type, must be set.
required: false required: false
max_connections_per_instance: max_connections_per_instance:
description: description:
@ -116,12 +116,21 @@ options:
- For CONNECTION mode, either maxConnections or maxConnectionsPerInstance - For CONNECTION mode, either maxConnections or maxConnectionsPerInstance
must be set. must be set.
required: false required: false
max_connections_per_endpoint:
description:
- The max number of simultaneous connections that a single backend network
endpoint can handle. This is used to calculate the capacity of the group.
Can be used in either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerEndpoint
must be set.
required: false
version_added: 2.9
max_rate: max_rate:
description: description:
- The max requests per second (RPS) of the group. - The max requests per second (RPS) of the group.
- Can be used with either RATE or UTILIZATION balancing modes, but required - Can be used with either RATE or UTILIZATION balancing modes, but required
if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be if RATE mode. For RATE mode, either maxRate or one of maxRatePerInstance
set. or maxRatePerEndpoint, as appropriate for group type, must be set.
required: false required: false
max_rate_per_instance: max_rate_per_instance:
description: description:
@ -130,6 +139,14 @@ options:
balancing mode. For RATE mode, either maxRate or maxRatePerInstance must balancing mode. For RATE mode, either maxRate or maxRatePerInstance must
be set. be set.
required: false required: false
max_rate_per_endpoint:
description:
- The max requests per second (RPS) that a single backend network endpoint
can handle. This is used to calculate the capacity of the group. Can be
used in either balancing mode. For RATE mode, either maxRate or maxRatePerEndpoint
must be set.
required: false
version_added: 2.9
max_utilization: max_utilization:
description: description:
- Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization
@ -389,8 +406,8 @@ backends:
description: description:
- The max number of simultaneous connections for the group. Can be used with - The max number of simultaneous connections for the group. Can be used with
either CONNECTION or UTILIZATION balancing modes. either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must - For CONNECTION mode, either maxConnections or one of maxConnectionsPerInstance
be set. or maxConnectionsPerEndpoint, as appropriate for group type, must be set.
returned: success returned: success
type: int type: int
maxConnectionsPerInstance: maxConnectionsPerInstance:
@ -402,12 +419,21 @@ backends:
be set. be set.
returned: success returned: success
type: int type: int
maxConnectionsPerEndpoint:
description:
- The max number of simultaneous connections that a single backend network endpoint
can handle. This is used to calculate the capacity of the group. Can be used
in either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerEndpoint must
be set.
returned: success
type: int
maxRate: maxRate:
description: description:
- The max requests per second (RPS) of the group. - The max requests per second (RPS) of the group.
- Can be used with either RATE or UTILIZATION balancing modes, but required - Can be used with either RATE or UTILIZATION balancing modes, but required
if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be if RATE mode. For RATE mode, either maxRate or one of maxRatePerInstance or
set. maxRatePerEndpoint, as appropriate for group type, must be set.
returned: success returned: success
type: int type: int
maxRatePerInstance: maxRatePerInstance:
@ -418,6 +444,14 @@ backends:
set. set.
returned: success returned: success
type: str type: str
maxRatePerEndpoint:
description:
- The max requests per second (RPS) that a single backend network endpoint can
handle. This is used to calculate the capacity of the group. Can be used in
either balancing mode. For RATE mode, either maxRate or maxRatePerEndpoint
must be set.
returned: success
type: str
maxUtilization: maxUtilization:
description: description:
- Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization
@ -636,8 +670,10 @@ def main():
group=dict(type='str'), group=dict(type='str'),
max_connections=dict(type='int'), max_connections=dict(type='int'),
max_connections_per_instance=dict(type='int'), max_connections_per_instance=dict(type='int'),
max_connections_per_endpoint=dict(type='int'),
max_rate=dict(type='int'), max_rate=dict(type='int'),
max_rate_per_instance=dict(type='str'), max_rate_per_instance=dict(type='str'),
max_rate_per_endpoint=dict(type='str'),
max_utilization=dict(default=0.8, type='str'), max_utilization=dict(default=0.8, type='str'),
), ),
), ),
@ -903,8 +939,10 @@ class BackendServiceBackendsArray(object):
u'group': item.get('group'), u'group': item.get('group'),
u'maxConnections': item.get('max_connections'), u'maxConnections': item.get('max_connections'),
u'maxConnectionsPerInstance': item.get('max_connections_per_instance'), u'maxConnectionsPerInstance': item.get('max_connections_per_instance'),
u'maxConnectionsPerEndpoint': item.get('max_connections_per_endpoint'),
u'maxRate': item.get('max_rate'), u'maxRate': item.get('max_rate'),
u'maxRatePerInstance': item.get('max_rate_per_instance'), u'maxRatePerInstance': item.get('max_rate_per_instance'),
u'maxRatePerEndpoint': item.get('max_rate_per_endpoint'),
u'maxUtilization': item.get('max_utilization'), u'maxUtilization': item.get('max_utilization'),
} }
) )
@ -918,8 +956,10 @@ class BackendServiceBackendsArray(object):
u'group': item.get(u'group'), u'group': item.get(u'group'),
u'maxConnections': item.get(u'maxConnections'), u'maxConnections': item.get(u'maxConnections'),
u'maxConnectionsPerInstance': item.get(u'maxConnectionsPerInstance'), u'maxConnectionsPerInstance': item.get(u'maxConnectionsPerInstance'),
u'maxConnectionsPerEndpoint': item.get(u'maxConnectionsPerEndpoint'),
u'maxRate': item.get(u'maxRate'), u'maxRate': item.get(u'maxRate'),
u'maxRatePerInstance': item.get(u'maxRatePerInstance'), u'maxRatePerInstance': item.get(u'maxRatePerInstance'),
u'maxRatePerEndpoint': item.get(u'maxRatePerEndpoint'),
u'maxUtilization': item.get(u'maxUtilization'), u'maxUtilization': item.get(u'maxUtilization'),
} }
) )

@ -123,8 +123,8 @@ resources:
description: description:
- The max number of simultaneous connections for the group. Can be used - The max number of simultaneous connections for the group. Can be used
with either CONNECTION or UTILIZATION balancing modes. with either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerInstance - For CONNECTION mode, either maxConnections or one of maxConnectionsPerInstance
must be set. or maxConnectionsPerEndpoint, as appropriate for group type, must be set.
returned: success returned: success
type: int type: int
maxConnectionsPerInstance: maxConnectionsPerInstance:
@ -136,12 +136,21 @@ resources:
must be set. must be set.
returned: success returned: success
type: int type: int
maxConnectionsPerEndpoint:
description:
- The max number of simultaneous connections that a single backend network
endpoint can handle. This is used to calculate the capacity of the group.
Can be used in either CONNECTION or UTILIZATION balancing modes.
- For CONNECTION mode, either maxConnections or maxConnectionsPerEndpoint
must be set.
returned: success
type: int
maxRate: maxRate:
description: description:
- The max requests per second (RPS) of the group. - The max requests per second (RPS) of the group.
- Can be used with either RATE or UTILIZATION balancing modes, but required - Can be used with either RATE or UTILIZATION balancing modes, but required
if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must if RATE mode. For RATE mode, either maxRate or one of maxRatePerInstance
be set. or maxRatePerEndpoint, as appropriate for group type, must be set.
returned: success returned: success
type: int type: int
maxRatePerInstance: maxRatePerInstance:
@ -152,6 +161,14 @@ resources:
be set. be set.
returned: success returned: success
type: str type: str
maxRatePerEndpoint:
description:
- The max requests per second (RPS) that a single backend network endpoint
can handle. This is used to calculate the capacity of the group. Can be
used in either balancing mode. For RATE mode, either maxRate or maxRatePerEndpoint
must be set.
returned: success
type: str
maxUtilization: maxUtilization:
description: description:
- Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization - Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization

Loading…
Cancel
Save