From 5967303b2d9476d8232d38b949af3d2acd97365f Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 19 Jul 2019 13:12:23 -0700 Subject: [PATCH] adding state info to docs (#317) Signed-off-by: Modular Magician --- plugins/modules/gcp_appengine_firewall_rule.py | 1 + plugins/modules/gcp_bigquery_dataset.py | 1 + plugins/modules/gcp_bigquery_table.py | 1 + plugins/modules/gcp_cloudbuild_trigger.py | 1 + plugins/modules/gcp_cloudscheduler_job.py | 1 + plugins/modules/gcp_compute_address.py | 1 + plugins/modules/gcp_compute_backend_bucket.py | 1 + plugins/modules/gcp_compute_backend_service.py | 1 + plugins/modules/gcp_compute_disk.py | 1 + plugins/modules/gcp_compute_firewall.py | 1 + plugins/modules/gcp_compute_forwarding_rule.py | 1 + plugins/modules/gcp_compute_global_address.py | 1 + plugins/modules/gcp_compute_global_forwarding_rule.py | 1 + plugins/modules/gcp_compute_health_check.py | 1 + plugins/modules/gcp_compute_http_health_check.py | 1 + plugins/modules/gcp_compute_https_health_check.py | 1 + plugins/modules/gcp_compute_image.py | 1 + plugins/modules/gcp_compute_instance.py | 1 + plugins/modules/gcp_compute_instance_group.py | 1 + plugins/modules/gcp_compute_instance_group_manager.py | 1 + plugins/modules/gcp_compute_instance_template.py | 1 + plugins/modules/gcp_compute_interconnect_attachment.py | 1 + plugins/modules/gcp_compute_network.py | 1 + plugins/modules/gcp_compute_region_disk.py | 1 + plugins/modules/gcp_compute_route.py | 1 + plugins/modules/gcp_compute_router.py | 1 + plugins/modules/gcp_compute_ssl_certificate.py | 1 + plugins/modules/gcp_compute_ssl_policy.py | 1 + plugins/modules/gcp_compute_subnetwork.py | 1 + plugins/modules/gcp_compute_target_http_proxy.py | 1 + plugins/modules/gcp_compute_target_https_proxy.py | 1 + plugins/modules/gcp_compute_target_pool.py | 7 ++++--- plugins/modules/gcp_compute_target_ssl_proxy.py | 1 + plugins/modules/gcp_compute_target_tcp_proxy.py | 1 + plugins/modules/gcp_compute_target_vpn_gateway.py | 1 + plugins/modules/gcp_compute_url_map.py | 1 + plugins/modules/gcp_compute_vpn_tunnel.py | 1 + plugins/modules/gcp_container_cluster.py | 1 + plugins/modules/gcp_container_node_pool.py | 1 + plugins/modules/gcp_dns_managed_zone.py | 1 + plugins/modules/gcp_dns_resource_record_set.py | 1 + plugins/modules/gcp_iam_role.py | 1 + plugins/modules/gcp_iam_service_account.py | 1 + plugins/modules/gcp_iam_service_account_key.py | 1 + plugins/modules/gcp_mlengine_model.py | 1 + plugins/modules/gcp_mlengine_version.py | 1 + plugins/modules/gcp_pubsub_subscription.py | 1 + plugins/modules/gcp_pubsub_topic.py | 1 + plugins/modules/gcp_redis_instance.py | 1 + plugins/modules/gcp_resourcemanager_project.py | 1 + plugins/modules/gcp_sourcerepo_repository.py | 1 + plugins/modules/gcp_spanner_database.py | 1 + plugins/modules/gcp_spanner_instance.py | 1 + plugins/modules/gcp_sql_database.py | 1 + plugins/modules/gcp_sql_instance.py | 1 + plugins/modules/gcp_sql_user.py | 1 + plugins/modules/gcp_storage_bucket.py | 1 + plugins/modules/gcp_storage_bucket_access_control.py | 1 + plugins/modules/gcp_storage_object.py | 1 + plugins/modules/gcp_tpu_node.py | 1 + 60 files changed, 63 insertions(+), 3 deletions(-) diff --git a/plugins/modules/gcp_appengine_firewall_rule.py b/plugins/modules/gcp_appengine_firewall_rule.py index d0f8645..2f03577 100644 --- a/plugins/modules/gcp_appengine_firewall_rule.py +++ b/plugins/modules/gcp_appengine_firewall_rule.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional string description of this rule. diff --git a/plugins/modules/gcp_bigquery_dataset.py b/plugins/modules/gcp_bigquery_dataset.py index 5afa3fd..ace5bb9 100644 --- a/plugins/modules/gcp_bigquery_dataset.py +++ b/plugins/modules/gcp_bigquery_dataset.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - Dataset name. diff --git a/plugins/modules/gcp_bigquery_table.py b/plugins/modules/gcp_bigquery_table.py index 98f401c..954bea4 100644 --- a/plugins/modules/gcp_bigquery_table.py +++ b/plugins/modules/gcp_bigquery_table.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str table_reference: description: - Reference describing the ID of this table. diff --git a/plugins/modules/gcp_cloudbuild_trigger.py b/plugins/modules/gcp_cloudbuild_trigger.py index 1b98d21..a43dde5 100644 --- a/plugins/modules/gcp_cloudbuild_trigger.py +++ b/plugins/modules/gcp_cloudbuild_trigger.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str id: description: - The unique identifier for the trigger. diff --git a/plugins/modules/gcp_cloudscheduler_job.py b/plugins/modules/gcp_cloudscheduler_job.py index cf353cf..3ac0018 100644 --- a/plugins/modules/gcp_cloudscheduler_job.py +++ b/plugins/modules/gcp_cloudscheduler_job.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str name: description: - The name of the job. diff --git a/plugins/modules/gcp_compute_address.py b/plugins/modules/gcp_compute_address.py index ecce02e..ff7bdf0 100644 --- a/plugins/modules/gcp_compute_address.py +++ b/plugins/modules/gcp_compute_address.py @@ -56,6 +56,7 @@ options: - present - absent default: present + type: str address: description: - The static external IP address represented by this resource. Only IPv4 is supported. diff --git a/plugins/modules/gcp_compute_backend_bucket.py b/plugins/modules/gcp_compute_backend_bucket.py index 1745ff6..3d268b7 100644 --- a/plugins/modules/gcp_compute_backend_bucket.py +++ b/plugins/modules/gcp_compute_backend_bucket.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str bucket_name: description: - Cloud Storage bucket name. diff --git a/plugins/modules/gcp_compute_backend_service.py b/plugins/modules/gcp_compute_backend_service.py index 4708253..a368ca2 100644 --- a/plugins/modules/gcp_compute_backend_service.py +++ b/plugins/modules/gcp_compute_backend_service.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str affinity_cookie_ttl_sec: description: - Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set diff --git a/plugins/modules/gcp_compute_disk.py b/plugins/modules/gcp_compute_disk.py index 8fded8b..6077a45 100644 --- a/plugins/modules/gcp_compute_disk.py +++ b/plugins/modules/gcp_compute_disk.py @@ -57,6 +57,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_firewall.py b/plugins/modules/gcp_compute_firewall.py index d4432e0..2a4bcee 100644 --- a/plugins/modules/gcp_compute_firewall.py +++ b/plugins/modules/gcp_compute_firewall.py @@ -54,6 +54,7 @@ options: - present - absent default: present + type: str allowed: description: - The list of ALLOW rules specified by this firewall. Each rule specifies a protocol diff --git a/plugins/modules/gcp_compute_forwarding_rule.py b/plugins/modules/gcp_compute_forwarding_rule.py index d9dfd3e..8794ed0 100644 --- a/plugins/modules/gcp_compute_forwarding_rule.py +++ b/plugins/modules/gcp_compute_forwarding_rule.py @@ -49,6 +49,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_global_address.py b/plugins/modules/gcp_compute_global_address.py index 2f4cd85..a20f623 100644 --- a/plugins/modules/gcp_compute_global_address.py +++ b/plugins/modules/gcp_compute_global_address.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str address: description: - The static external IP address represented by this resource. diff --git a/plugins/modules/gcp_compute_global_forwarding_rule.py b/plugins/modules/gcp_compute_global_forwarding_rule.py index 0fef910..b3fda8c 100644 --- a/plugins/modules/gcp_compute_global_forwarding_rule.py +++ b/plugins/modules/gcp_compute_global_forwarding_rule.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_health_check.py b/plugins/modules/gcp_compute_health_check.py index d54bfaf..438f4f1 100644 --- a/plugins/modules/gcp_compute_health_check.py +++ b/plugins/modules/gcp_compute_health_check.py @@ -55,6 +55,7 @@ options: - present - absent default: present + type: str check_interval_sec: description: - How often (in seconds) to send a health check. The default value is 5 seconds. diff --git a/plugins/modules/gcp_compute_http_health_check.py b/plugins/modules/gcp_compute_http_health_check.py index daf3a5a..c949291 100644 --- a/plugins/modules/gcp_compute_http_health_check.py +++ b/plugins/modules/gcp_compute_http_health_check.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str check_interval_sec: description: - How often (in seconds) to send a health check. The default value is 5 seconds. diff --git a/plugins/modules/gcp_compute_https_health_check.py b/plugins/modules/gcp_compute_https_health_check.py index 317c7c2..73b7c4b 100644 --- a/plugins/modules/gcp_compute_https_health_check.py +++ b/plugins/modules/gcp_compute_https_health_check.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str check_interval_sec: description: - How often (in seconds) to send a health check. The default value is 5 seconds. diff --git a/plugins/modules/gcp_compute_image.py b/plugins/modules/gcp_compute_image.py index 60c3c2c..0f06d9d 100644 --- a/plugins/modules/gcp_compute_image.py +++ b/plugins/modules/gcp_compute_image.py @@ -57,6 +57,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_instance.py b/plugins/modules/gcp_compute_instance.py index 6766287..8ab0b3c 100644 --- a/plugins/modules/gcp_compute_instance.py +++ b/plugins/modules/gcp_compute_instance.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str can_ip_forward: description: - Allows this instance to send and receive packets with non-matching destination diff --git a/plugins/modules/gcp_compute_instance_group.py b/plugins/modules/gcp_compute_instance_group.py index 43c6367..4d4e304 100644 --- a/plugins/modules/gcp_compute_instance_group.py +++ b/plugins/modules/gcp_compute_instance_group.py @@ -50,6 +50,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_instance_group_manager.py b/plugins/modules/gcp_compute_instance_group_manager.py index b8e4196..9ece0b7 100644 --- a/plugins/modules/gcp_compute_instance_group_manager.py +++ b/plugins/modules/gcp_compute_instance_group_manager.py @@ -52,6 +52,7 @@ options: - present - absent default: present + type: str base_instance_name: description: - The base instance name to use for instances in this group. The value must be diff --git a/plugins/modules/gcp_compute_instance_template.py b/plugins/modules/gcp_compute_instance_template.py index 6ec7679..365fd51 100644 --- a/plugins/modules/gcp_compute_instance_template.py +++ b/plugins/modules/gcp_compute_instance_template.py @@ -53,6 +53,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_interconnect_attachment.py b/plugins/modules/gcp_compute_interconnect_attachment.py index c13459a..06fdd07 100644 --- a/plugins/modules/gcp_compute_interconnect_attachment.py +++ b/plugins/modules/gcp_compute_interconnect_attachment.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str interconnect: description: - URL of the underlying Interconnect object that this attachment's traffic will diff --git a/plugins/modules/gcp_compute_network.py b/plugins/modules/gcp_compute_network.py index 71e88d8..1644cc3 100644 --- a/plugins/modules/gcp_compute_network.py +++ b/plugins/modules/gcp_compute_network.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. The resource must be recreated to diff --git a/plugins/modules/gcp_compute_region_disk.py b/plugins/modules/gcp_compute_region_disk.py index e185258..30bde25 100644 --- a/plugins/modules/gcp_compute_region_disk.py +++ b/plugins/modules/gcp_compute_region_disk.py @@ -57,6 +57,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_route.py b/plugins/modules/gcp_compute_route.py index 578c843..1b22e74 100644 --- a/plugins/modules/gcp_compute_route.py +++ b/plugins/modules/gcp_compute_route.py @@ -62,6 +62,7 @@ options: - present - absent default: present + type: str dest_range: description: - The destination range of outgoing packets that this route applies to. diff --git a/plugins/modules/gcp_compute_router.py b/plugins/modules/gcp_compute_router.py index 48a26b7..9316886 100644 --- a/plugins/modules/gcp_compute_router.py +++ b/plugins/modules/gcp_compute_router.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - Name of the resource. The name must be 1-63 characters long, and comply with diff --git a/plugins/modules/gcp_compute_ssl_certificate.py b/plugins/modules/gcp_compute_ssl_certificate.py index 7c2113f..fa230ae 100644 --- a/plugins/modules/gcp_compute_ssl_certificate.py +++ b/plugins/modules/gcp_compute_ssl_certificate.py @@ -49,6 +49,7 @@ options: - present - absent default: present + type: str certificate: description: - The certificate in PEM format. diff --git a/plugins/modules/gcp_compute_ssl_policy.py b/plugins/modules/gcp_compute_ssl_policy.py index 6dbd614..f0be161 100644 --- a/plugins/modules/gcp_compute_ssl_policy.py +++ b/plugins/modules/gcp_compute_ssl_policy.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_subnetwork.py b/plugins/modules/gcp_compute_subnetwork.py index 0d7ea5f..c203f30 100644 --- a/plugins/modules/gcp_compute_subnetwork.py +++ b/plugins/modules/gcp_compute_subnetwork.py @@ -63,6 +63,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. Provide this property when you create diff --git a/plugins/modules/gcp_compute_target_http_proxy.py b/plugins/modules/gcp_compute_target_http_proxy.py index dbc0601..0095aea 100644 --- a/plugins/modules/gcp_compute_target_http_proxy.py +++ b/plugins/modules/gcp_compute_target_http_proxy.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_target_https_proxy.py b/plugins/modules/gcp_compute_target_https_proxy.py index d0f8c25..1d1232b 100644 --- a/plugins/modules/gcp_compute_target_https_proxy.py +++ b/plugins/modules/gcp_compute_target_https_proxy.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_target_pool.py b/plugins/modules/gcp_compute_target_pool.py index 99c2aa6..d1c870c 100644 --- a/plugins/modules/gcp_compute_target_pool.py +++ b/plugins/modules/gcp_compute_target_pool.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str backup_pool: description: - This field is applicable only when the containing target pool is serving a forwarding @@ -360,7 +361,7 @@ def return_if_object(module, response, kind, allow_not_found=False): except getattr(json.decoder, 'JSONDecodeError', ValueError): module.fail_json(msg="Invalid JSON response with error: %s" % response.text) - result = decode_request(result, module) + result = decode_response(result, module) if navigate_hash(result, ['error', 'errors']): module.fail_json(msg=navigate_hash(result, ['error', 'errors'])) @@ -371,7 +372,7 @@ def return_if_object(module, response, kind, allow_not_found=False): def is_different(module, response): request = resource_to_request(module) response = response_to_hash(module, response) - request = decode_request(request, module) + request = decode_response(request, module) # Remove all output-only from response. response_vals = {} @@ -453,7 +454,7 @@ def encode_request(request, module): # Mask healthChecks into a single element. # @see encode_request for details -def decode_request(response, module): +def decode_response(response, module): if response['kind'] != 'compute#targetPool': return response diff --git a/plugins/modules/gcp_compute_target_ssl_proxy.py b/plugins/modules/gcp_compute_target_ssl_proxy.py index 068aec4..6f58d41 100644 --- a/plugins/modules/gcp_compute_target_ssl_proxy.py +++ b/plugins/modules/gcp_compute_target_ssl_proxy.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_target_tcp_proxy.py b/plugins/modules/gcp_compute_target_tcp_proxy.py index cce3596..b7ced27 100644 --- a/plugins/modules/gcp_compute_target_tcp_proxy.py +++ b/plugins/modules/gcp_compute_target_tcp_proxy.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_target_vpn_gateway.py b/plugins/modules/gcp_compute_target_vpn_gateway.py index de4830e..7d03975 100644 --- a/plugins/modules/gcp_compute_target_vpn_gateway.py +++ b/plugins/modules/gcp_compute_target_vpn_gateway.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - An optional description of this resource. diff --git a/plugins/modules/gcp_compute_url_map.py b/plugins/modules/gcp_compute_url_map.py index d43176a..f747e6e 100644 --- a/plugins/modules/gcp_compute_url_map.py +++ b/plugins/modules/gcp_compute_url_map.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str default_service: description: - A reference to BackendService resource if none of the hostRules match. diff --git a/plugins/modules/gcp_compute_vpn_tunnel.py b/plugins/modules/gcp_compute_vpn_tunnel.py index 84e7ff2..7efe468 100644 --- a/plugins/modules/gcp_compute_vpn_tunnel.py +++ b/plugins/modules/gcp_compute_vpn_tunnel.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - Name of the resource. The name must be 1-63 characters long, and comply with diff --git a/plugins/modules/gcp_container_cluster.py b/plugins/modules/gcp_container_cluster.py index 030094f..49df86f 100644 --- a/plugins/modules/gcp_container_cluster.py +++ b/plugins/modules/gcp_container_cluster.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - The name of this cluster. The name must be unique within this project and location, diff --git a/plugins/modules/gcp_container_node_pool.py b/plugins/modules/gcp_container_node_pool.py index fa0d250..25dbe24 100644 --- a/plugins/modules/gcp_container_node_pool.py +++ b/plugins/modules/gcp_container_node_pool.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str name: description: - The name of the node pool. diff --git a/plugins/modules/gcp_dns_managed_zone.py b/plugins/modules/gcp_dns_managed_zone.py index c620ad7..795302b 100644 --- a/plugins/modules/gcp_dns_managed_zone.py +++ b/plugins/modules/gcp_dns_managed_zone.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str description: description: - A mutable string of at most 1024 characters associated with this resource for diff --git a/plugins/modules/gcp_dns_resource_record_set.py b/plugins/modules/gcp_dns_resource_record_set.py index 111514f..d74ab7c 100644 --- a/plugins/modules/gcp_dns_resource_record_set.py +++ b/plugins/modules/gcp_dns_resource_record_set.py @@ -51,6 +51,7 @@ options: - present - absent default: present + type: str name: description: - For example, U(www.example.com). diff --git a/plugins/modules/gcp_iam_role.py b/plugins/modules/gcp_iam_role.py index ffd422c..47512f8 100644 --- a/plugins/modules/gcp_iam_role.py +++ b/plugins/modules/gcp_iam_role.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - The name of the role. diff --git a/plugins/modules/gcp_iam_service_account.py b/plugins/modules/gcp_iam_service_account.py index 78bec7f..642c57e 100644 --- a/plugins/modules/gcp_iam_service_account.py +++ b/plugins/modules/gcp_iam_service_account.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - The name of the service account. diff --git a/plugins/modules/gcp_iam_service_account_key.py b/plugins/modules/gcp_iam_service_account_key.py index 8891966..a7491d6 100644 --- a/plugins/modules/gcp_iam_service_account_key.py +++ b/plugins/modules/gcp_iam_service_account_key.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str private_key_type: description: - Output format for the service account key. diff --git a/plugins/modules/gcp_mlengine_model.py b/plugins/modules/gcp_mlengine_model.py index 782c1b6..4150aec 100644 --- a/plugins/modules/gcp_mlengine_model.py +++ b/plugins/modules/gcp_mlengine_model.py @@ -49,6 +49,7 @@ options: - present - absent default: present + type: str name: description: - The name specified for the model. diff --git a/plugins/modules/gcp_mlengine_version.py b/plugins/modules/gcp_mlengine_version.py index b271836..df328d9 100644 --- a/plugins/modules/gcp_mlengine_version.py +++ b/plugins/modules/gcp_mlengine_version.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str name: description: - The name specified for the version when it was created. diff --git a/plugins/modules/gcp_pubsub_subscription.py b/plugins/modules/gcp_pubsub_subscription.py index ef1a8a5..01bb03d 100644 --- a/plugins/modules/gcp_pubsub_subscription.py +++ b/plugins/modules/gcp_pubsub_subscription.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str name: description: - Name of the subscription. diff --git a/plugins/modules/gcp_pubsub_topic.py b/plugins/modules/gcp_pubsub_topic.py index 925fdbb..a346a8c 100644 --- a/plugins/modules/gcp_pubsub_topic.py +++ b/plugins/modules/gcp_pubsub_topic.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - Name of the topic. diff --git a/plugins/modules/gcp_redis_instance.py b/plugins/modules/gcp_redis_instance.py index 87a3347..13619dc 100644 --- a/plugins/modules/gcp_redis_instance.py +++ b/plugins/modules/gcp_redis_instance.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str alternative_location_id: description: - Only applicable to STANDARD_HA tier which protects the instance against zonal diff --git a/plugins/modules/gcp_resourcemanager_project.py b/plugins/modules/gcp_resourcemanager_project.py index bf9c255..547bef2 100644 --- a/plugins/modules/gcp_resourcemanager_project.py +++ b/plugins/modules/gcp_resourcemanager_project.py @@ -48,6 +48,7 @@ options: - present - absent default: present + type: str name: description: - 'The user-assigned display name of the Project. It must be 4 to 30 characters. diff --git a/plugins/modules/gcp_sourcerepo_repository.py b/plugins/modules/gcp_sourcerepo_repository.py index cb690e9..b702f28 100644 --- a/plugins/modules/gcp_sourcerepo_repository.py +++ b/plugins/modules/gcp_sourcerepo_repository.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - Resource name of the repository, of the form projects/{{project}}/repos/{{repo}}. diff --git a/plugins/modules/gcp_spanner_database.py b/plugins/modules/gcp_spanner_database.py index e59d4c9..1ce4fb3 100644 --- a/plugins/modules/gcp_spanner_database.py +++ b/plugins/modules/gcp_spanner_database.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - A unique identifier for the database, which cannot be changed after the instance diff --git a/plugins/modules/gcp_spanner_instance.py b/plugins/modules/gcp_spanner_instance.py index 8b7dd74..9cfd81b 100644 --- a/plugins/modules/gcp_spanner_instance.py +++ b/plugins/modules/gcp_spanner_instance.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - A unique identifier for the instance, which cannot be changed after the instance diff --git a/plugins/modules/gcp_sql_database.py b/plugins/modules/gcp_sql_database.py index 523ea83..398d28c 100644 --- a/plugins/modules/gcp_sql_database.py +++ b/plugins/modules/gcp_sql_database.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str charset: description: - The MySQL charset value. diff --git a/plugins/modules/gcp_sql_instance.py b/plugins/modules/gcp_sql_instance.py index a3c5284..c8ba028 100644 --- a/plugins/modules/gcp_sql_instance.py +++ b/plugins/modules/gcp_sql_instance.py @@ -49,6 +49,7 @@ options: - present - absent default: present + type: str backend_type: description: - "* FIRST_GEN: First Generation instance. MySQL only." diff --git a/plugins/modules/gcp_sql_user.py b/plugins/modules/gcp_sql_user.py index 0c52ef2..64dca81 100644 --- a/plugins/modules/gcp_sql_user.py +++ b/plugins/modules/gcp_sql_user.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str host: description: - The host name from which the user can connect. For insert operations, host defaults diff --git a/plugins/modules/gcp_storage_bucket.py b/plugins/modules/gcp_storage_bucket.py index 58ac095..243c61b 100644 --- a/plugins/modules/gcp_storage_bucket.py +++ b/plugins/modules/gcp_storage_bucket.py @@ -52,6 +52,7 @@ options: - present - absent default: present + type: str acl: description: - Access controls on the bucket. diff --git a/plugins/modules/gcp_storage_bucket_access_control.py b/plugins/modules/gcp_storage_bucket_access_control.py index 4dac53b..6d58a49 100644 --- a/plugins/modules/gcp_storage_bucket_access_control.py +++ b/plugins/modules/gcp_storage_bucket_access_control.py @@ -56,6 +56,7 @@ options: - present - absent default: present + type: str bucket: description: - The name of the bucket. diff --git a/plugins/modules/gcp_storage_object.py b/plugins/modules/gcp_storage_object.py index 99b5c46..fc3c304 100644 --- a/plugins/modules/gcp_storage_object.py +++ b/plugins/modules/gcp_storage_object.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str action: description: - Upload or download from the bucket. diff --git a/plugins/modules/gcp_tpu_node.py b/plugins/modules/gcp_tpu_node.py index afd00ac..45b3e8d 100644 --- a/plugins/modules/gcp_tpu_node.py +++ b/plugins/modules/gcp_tpu_node.py @@ -47,6 +47,7 @@ options: - present - absent default: present + type: str name: description: - The immutable name of the TPU.