Merge pull request #117 from modular-magician/codegen-pr-2873

These fields were duplicated, they shouldn't be
This commit is contained in:
Sam Levenick 2019-12-19 15:11:02 -08:00 committed by GitHub
commit 7d85e98b1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 38 deletions

View file

@ -319,6 +319,14 @@ options:
a /14 block in 10.0.0.0/8. a /14 block in 10.0.0.0/8.
required: false required: false
type: str type: str
enable_tpu:
description:
- "(Optional) Whether to enable Cloud TPU resources in this cluster."
- See the official documentation - U(https://cloud.google.com/tpu/docs/kubernetes-engine-setup)
.
required: false
type: bool
version_added: '2.9'
addons_config: addons_config:
description: description:
- Configurations for the various addons available to run in the cluster. - Configurations for the various addons available to run in the cluster.
@ -510,18 +518,6 @@ options:
- Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. - Set to /netmask (e.g. /14) to have a range chosen with a specific netmask.
required: false required: false
type: str type: str
enable_tpu:
description:
- Enable the ability to use Cloud TPUs in this cluster.
required: false
type: bool
version_added: '2.9'
tpu_ipv4_cidr_block:
description:
- The IP address range of the Cloud TPUs in this cluster, in CIDR notation.
required: false
type: str
version_added: '2.9'
master_authorized_networks_config: master_authorized_networks_config:
description: description:
- Configuration for controlling how IPs are allocated in the cluster. - Configuration for controlling how IPs are allocated in the cluster.
@ -919,6 +915,19 @@ clusterIpv4Cidr:
in 10.0.0.0/8. in 10.0.0.0/8.
returned: success returned: success
type: str type: str
enableTpu:
description:
- "(Optional) Whether to enable Cloud TPU resources in this cluster."
- See the official documentation - U(https://cloud.google.com/tpu/docs/kubernetes-engine-setup)
.
returned: success
type: bool
tpuIpv4CidrBlock:
description:
- The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
notation (e.g. `1.2.3.4/29`).
returned: success
type: str
addonsConfig: addonsConfig:
description: description:
- Configurations for the various addons available to run in the cluster. - Configurations for the various addons available to run in the cluster.
@ -1168,16 +1177,6 @@ expireTime:
- The time the cluster will be automatically deleted in RFC3339 text format. - The time the cluster will be automatically deleted in RFC3339 text format.
returned: success returned: success
type: str type: str
enableTpu:
description:
- Enable the ability to use Cloud TPUs in this cluster.
returned: success
type: bool
tpuIpv4CidrBlock:
description:
- The IP address range of the Cloud TPUs in this cluster, in CIDR notation.
returned: success
type: str
conditions: conditions:
description: description:
- Which conditions caused the current cluster state. - Which conditions caused the current cluster state.
@ -1307,6 +1306,7 @@ def main():
options=dict(enable_private_nodes=dict(type='bool'), enable_private_endpoint=dict(type='bool'), master_ipv4_cidr_block=dict(type='str')), options=dict(enable_private_nodes=dict(type='bool'), enable_private_endpoint=dict(type='bool'), master_ipv4_cidr_block=dict(type='str')),
), ),
cluster_ipv4_cidr=dict(type='str'), cluster_ipv4_cidr=dict(type='str'),
enable_tpu=dict(type='bool'),
addons_config=dict( addons_config=dict(
type='dict', type='dict',
options=dict( options=dict(
@ -1335,8 +1335,6 @@ def main():
tpu_ipv4_cidr_block=dict(type='str'), tpu_ipv4_cidr_block=dict(type='str'),
), ),
), ),
enable_tpu=dict(type='bool'),
tpu_ipv4_cidr_block=dict(type='str'),
master_authorized_networks_config=dict( master_authorized_networks_config=dict(
type='dict', type='dict',
options=dict( options=dict(
@ -1410,6 +1408,7 @@ def resource_to_request(module):
u'network': module.params.get('network'), u'network': module.params.get('network'),
u'privateClusterConfig': ClusterPrivateclusterconfig(module.params.get('private_cluster_config', {}), module).to_request(), u'privateClusterConfig': ClusterPrivateclusterconfig(module.params.get('private_cluster_config', {}), module).to_request(),
u'clusterIpv4Cidr': module.params.get('cluster_ipv4_cidr'), u'clusterIpv4Cidr': module.params.get('cluster_ipv4_cidr'),
u'enableTpu': module.params.get('enable_tpu'),
u'addonsConfig': ClusterAddonsconfig(module.params.get('addons_config', {}), module).to_request(), u'addonsConfig': ClusterAddonsconfig(module.params.get('addons_config', {}), module).to_request(),
u'subnetwork': module.params.get('subnetwork'), u'subnetwork': module.params.get('subnetwork'),
u'locations': module.params.get('locations'), u'locations': module.params.get('locations'),
@ -1418,8 +1417,6 @@ def resource_to_request(module):
u'networkPolicy': ClusterNetworkpolicy(module.params.get('network_policy', {}), module).to_request(), u'networkPolicy': ClusterNetworkpolicy(module.params.get('network_policy', {}), module).to_request(),
u'defaultMaxPodsConstraint': ClusterDefaultmaxpodsconstraint(module.params.get('default_max_pods_constraint', {}), module).to_request(), u'defaultMaxPodsConstraint': ClusterDefaultmaxpodsconstraint(module.params.get('default_max_pods_constraint', {}), module).to_request(),
u'ipAllocationPolicy': ClusterIpallocationpolicy(module.params.get('ip_allocation_policy', {}), module).to_request(), u'ipAllocationPolicy': ClusterIpallocationpolicy(module.params.get('ip_allocation_policy', {}), module).to_request(),
u'enableTpu': module.params.get('enable_tpu'),
u'tpuIpv4CidrBlock': module.params.get('tpu_ipv4_cidr_block'),
u'masterAuthorizedNetworksConfig': ClusterMasterauthorizednetworksconfig( u'masterAuthorizedNetworksConfig': ClusterMasterauthorizednetworksconfig(
module.params.get('master_authorized_networks_config', {}), module module.params.get('master_authorized_networks_config', {}), module
).to_request(), ).to_request(),
@ -1499,6 +1496,8 @@ def response_to_hash(module, response):
u'network': response.get(u'network'), u'network': response.get(u'network'),
u'privateClusterConfig': ClusterPrivateclusterconfig(response.get(u'privateClusterConfig', {}), module).from_response(), u'privateClusterConfig': ClusterPrivateclusterconfig(response.get(u'privateClusterConfig', {}), module).from_response(),
u'clusterIpv4Cidr': response.get(u'clusterIpv4Cidr'), u'clusterIpv4Cidr': response.get(u'clusterIpv4Cidr'),
u'enableTpu': response.get(u'enableTpu'),
u'tpuIpv4CidrBlock': response.get(u'tpuIpv4CidrBlock'),
u'addonsConfig': ClusterAddonsconfig(response.get(u'addonsConfig', {}), module).from_response(), u'addonsConfig': ClusterAddonsconfig(response.get(u'addonsConfig', {}), module).from_response(),
u'subnetwork': response.get(u'subnetwork'), u'subnetwork': response.get(u'subnetwork'),
u'locations': response.get(u'locations'), u'locations': response.get(u'locations'),
@ -1519,8 +1518,6 @@ def response_to_hash(module, response):
u'servicesIpv4Cidr': response.get(u'servicesIpv4Cidr'), u'servicesIpv4Cidr': response.get(u'servicesIpv4Cidr'),
u'currentNodeCount': response.get(u'currentNodeCount'), u'currentNodeCount': response.get(u'currentNodeCount'),
u'expireTime': response.get(u'expireTime'), u'expireTime': response.get(u'expireTime'),
u'enableTpu': response.get(u'enableTpu'),
u'tpuIpv4CidrBlock': response.get(u'tpuIpv4CidrBlock'),
u'conditions': ClusterConditionsArray(response.get(u'conditions', []), module).from_response(), u'conditions': ClusterConditionsArray(response.get(u'conditions', []), module).from_response(),
u'masterAuthorizedNetworksConfig': ClusterMasterauthorizednetworksconfig(response.get(u'masterAuthorizedNetworksConfig', {}), module).from_response(), u'masterAuthorizedNetworksConfig': ClusterMasterauthorizednetworksconfig(response.get(u'masterAuthorizedNetworksConfig', {}), module).from_response(),
} }

View file

@ -402,6 +402,19 @@ resources:
a /14 block in 10.0.0.0/8. a /14 block in 10.0.0.0/8.
returned: success returned: success
type: str type: str
enableTpu:
description:
- "(Optional) Whether to enable Cloud TPU resources in this cluster."
- See the official documentation - U(https://cloud.google.com/tpu/docs/kubernetes-engine-setup)
.
returned: success
type: bool
tpuIpv4CidrBlock:
description:
- The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
notation (e.g. `1.2.3.4/29`).
returned: success
type: str
addonsConfig: addonsConfig:
description: description:
- Configurations for the various addons available to run in the cluster. - Configurations for the various addons available to run in the cluster.
@ -651,16 +664,6 @@ resources:
- The time the cluster will be automatically deleted in RFC3339 text format. - The time the cluster will be automatically deleted in RFC3339 text format.
returned: success returned: success
type: str type: str
enableTpu:
description:
- Enable the ability to use Cloud TPUs in this cluster.
returned: success
type: bool
tpuIpv4CidrBlock:
description:
- The IP address range of the Cloud TPUs in this cluster, in CIDR notation.
returned: success
type: str
conditions: conditions:
description: description:
- Which conditions caused the current cluster state. - Which conditions caused the current cluster state.