Changing GCP Facts modules to Info Modules (#60172)

* file changes, porting guide, changelog fragment, renaming autoscaler, removing rst links
* Apply suggestions from code review

Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com>
Co-Authored-By: Felix Fontein <felix@fontein.de>
pull/60435/head
Alex Stephen 5 years ago committed by Alicia Cozine
parent b6202dde32
commit 2e90efd4a7

@ -0,0 +1,53 @@
minor_changes:
- The ``gcp_bigquery_dataset_facts`` module was renamed to ``gcp_bigquery_dataset_info``.
- The ``gcp_bigquery_table_facts`` module was renamed to ``gcp_bigquery_table_info``.
- The ``gcp_cloudbuild_trigger_facts`` module was renamed to ``gcp_cloudbuild_trigger_info``.
- The ``gcp_compute_address_facts`` module was renamed to ``gcp_compute_address_info``.
- The ``gcp_compute_backend_bucket_facts`` module was renamed to ``gcp_compute_backend_bucket_info``.
- The ``gcp_compute_backend_service_facts`` module was renamed to ``gcp_compute_backend_service_info``.
- The ``gcp_compute_disk_facts`` module was renamed to ``gcp_compute_disk_info``.
- The ``gcp_compute_firewall_facts`` module was renamed to ``gcp_compute_firewall_info``.
- The ``gcp_compute_forwarding_rule_facts`` module was renamed to ``gcp_compute_forwarding_rule_info``.
- The ``gcp_compute_global_address_facts`` module was renamed to ``gcp_compute_global_address_info``.
- The ``gcp_compute_global_forwarding_rule_facts`` module was renamed to ``gcp_compute_global_forwarding_rule_info``.
- The ``gcp_compute_health_check_facts`` module was renamed to ``gcp_compute_health_check_info``.
- The ``gcp_compute_http_health_check_facts`` module was renamed to ``gcp_compute_http_health_check_info``.
- The ``gcp_compute_https_health_check_facts`` module was renamed to ``gcp_compute_https_health_check_info``.
- The ``gcp_compute_image_facts`` module was renamed to ``gcp_compute_image_info``.
- The ``gcp_compute_instance_group_facts`` module was renamed to ``gcp_compute_instance_group_info``.
- The ``gcp_compute_instance_group_manager_facts`` module was renamed to ``gcp_compute_instance_group_manager_info``.
- The ``gcp_compute_instance_facts`` module was renamed to ``gcp_compute_instance_info``.
- The ``gcp_compute_instance_template_facts`` module was renamed to ``gcp_compute_instance_template_info``.
- The ``gcp_compute_interconnect_attachment_facts`` module was renamed to ``gcp_compute_interconnect_attachment_info``.
- The ``gcp_compute_network_facts`` module was renamed to ``gcp_compute_network_info``.
- The ``gcp_compute_region_disk_facts`` module was renamed to ``gcp_compute_region_disk_info``.
- The ``gcp_compute_route_facts`` module was renamed to ``gcp_compute_route_info``.
- The ``gcp_compute_router_facts`` module was renamed to ``gcp_compute_router_info``.
- The ``gcp_compute_ssl_certificate_facts`` module was renamed to ``gcp_compute_ssl_certificate_info``.
- The ``gcp_compute_ssl_policy_facts`` module was renamed to ``gcp_compute_ssl_policy_info``.
- The ``gcp_compute_subnetwork_facts`` module was renamed to ``gcp_compute_subnetwork_info``.
- The ``gcp_compute_target_http_proxy_facts`` module was renamed to ``gcp_compute_target_http_proxy_info``.
- The ``gcp_compute_target_https_proxy_facts`` module was renamed to ``gcp_compute_target_https_proxy_info``.
- The ``gcp_compute_target_pool_facts`` module was renamed to ``gcp_compute_target_pool_info``.
- The ``gcp_compute_target_ssl_proxy_facts`` module was renamed to ``gcp_compute_target_ssl_proxy_info``.
- The ``gcp_compute_target_tcp_proxy_facts`` module was renamed to ``gcp_compute_target_tcp_proxy_info``.
- The ``gcp_compute_target_vpn_gateway_facts`` module was renamed to ``gcp_compute_target_vpn_gateway_info``.
- The ``gcp_compute_url_map_facts`` module was renamed to ``gcp_compute_url_map_info``.
- The ``gcp_compute_vpn_tunnel_facts`` module was renamed to ``gcp_compute_vpn_tunnel_info``.
- The ``gcp_container_cluster_facts`` module was renamed to ``gcp_container_cluster_info``.
- The ``gcp_container_node_pool_facts`` module was renamed to ``gcp_container_node_pool_info``.
- The ``gcp_dns_managed_zone_facts`` module was renamed to ``gcp_dns_managed_zone_info``.
- The ``gcp_dns_resource_record_set_facts`` module was renamed to ``gcp_dns_resource_record_set_info``.
- The ``gcp_iam_role_facts`` module was renamed to ``gcp_iam_role_info``.
- The ``gcp_iam_service_account_facts`` module was renamed to ``gcp_iam_service_account_info``.
- The ``gcp_pubsub_subscription_facts`` module was renamed to ``gcp_pubsub_subscription_info``.
- The ``gcp_pubsub_topic_facts`` module was renamed to ``gcp_pubsub_topic_info``.
- The ``gcp_redis_instance_facts`` module was renamed to ``gcp_redis_instance_info``.
- The ``gcp_resourcemanager_project_facts`` module was renamed to ``gcp_resourcemanager_project_info``.
- The ``gcp_sourcerepo_repository_facts`` module was renamed to ``gcp_sourcerepo_repository_info``.
- The ``gcp_spanner_database_facts`` module was renamed to ``gcp_spanner_database_info``.
- The ``gcp_spanner_instance_facts`` module was renamed to ``gcp_spanner_instance_info``.
- The ``gcp_sql_database_facts`` module was renamed to ``gcp_sql_database_info``.
- The ``gcp_sql_instance_facts`` module was renamed to ``gcp_sql_instance_info``.
- The ``gcp_sql_user_facts`` module was renamed to ``gcp_sql_user_info``.
- The ``gcp_tpu_node_facts`` module was renamed to ``gcp_tpu_node_info``.

@ -146,6 +146,58 @@ Noteworthy module changes
* The ``elb_classic_lb_facts`` module was renamed to :ref:`elb_classic_lb_info <elb_classic_lb_info_module>`. * The ``elb_classic_lb_facts`` module was renamed to :ref:`elb_classic_lb_info <elb_classic_lb_info_module>`.
* The ``elb_target_facts`` module was renamed to :ref:`elb_target_info <elb_target_info_module>`. * The ``elb_target_facts`` module was renamed to :ref:`elb_target_info <elb_target_info_module>`.
* The ``elb_target_group_facts`` module was renamed to :ref:`elb_target_group_info <elb_target_group_info_module>`. * The ``elb_target_group_facts`` module was renamed to :ref:`elb_target_group_info <elb_target_group_info_module>`.
* The ``gcp_bigquery_dataset_facts`` module was renamed to :ref:`gcp_bigquery_dataset_info <gcp_bigquery_dataset_info_module>`.
* The ``gcp_bigquery_table_facts`` module was renamed to :ref:`gcp_bigquery_table_info <gcp_bigquery_table_info_module>`.
* The ``gcp_cloudbuild_trigger_facts`` module was renamed to :ref:`gcp_cloudbuild_trigger_info <gcp_cloudbuild_trigger_info_module>`.
* The ``gcp_compute_address_facts`` module was renamed to :ref:`gcp_compute_address_info <gcp_compute_address_info_module>`.
* The ``gcp_compute_backend_bucket_facts`` module was renamed to :ref:`gcp_compute_backend_bucket_info <gcp_compute_backend_bucket_info_module>`.
* The ``gcp_compute_backend_service_facts`` module was renamed to :ref:`gcp_compute_backend_service_info <gcp_compute_backend_service_info_module>`.
* The ``gcp_compute_disk_facts`` module was renamed to :ref:`gcp_compute_disk_info <gcp_compute_disk_info_module>`.
* The ``gcp_compute_firewall_facts`` module was renamed to :ref:`gcp_compute_firewall_info <gcp_compute_firewall_info_module>`.
* The ``gcp_compute_forwarding_rule_facts`` module was renamed to :ref:`gcp_compute_forwarding_rule_info <gcp_compute_forwarding_rule_info_module>`.
* The ``gcp_compute_global_address_facts`` module was renamed to :ref:`gcp_compute_global_address_info <gcp_compute_global_address_info_module>`.
* The ``gcp_compute_global_forwarding_rule_facts`` module was renamed to :ref:`gcp_compute_global_forwarding_rule_info <gcp_compute_global_forwarding_rule_info_module>`.
* The ``gcp_compute_health_check_facts`` module was renamed to :ref:`gcp_compute_health_check_info <gcp_compute_health_check_info_module>`.
* The ``gcp_compute_http_health_check_facts`` module was renamed to :ref:`gcp_compute_http_health_check_info <gcp_compute_http_health_check_info_module>`.
* The ``gcp_compute_https_health_check_facts`` module was renamed to :ref:`gcp_compute_https_health_check_info <gcp_compute_https_health_check_info_module>`.
* The ``gcp_compute_image_facts`` module was renamed to :ref:`gcp_compute_image_info <gcp_compute_image_info_module>`.
* The ``gcp_compute_instance_group_facts`` module was renamed to :ref:`gcp_compute_instance_group_info <gcp_compute_instance_group_info_module>`.
* The ``gcp_compute_instance_group_manager_facts`` module was renamed to :ref:`gcp_compute_instance_group_manager_info <gcp_compute_instance_group_manager_info_module>`.
* The ``gcp_compute_instance_facts`` module was renamed to :ref:`gcp_compute_instance_info <gcp_compute_instance_info_module>`.
* The ``gcp_compute_instance_template_facts`` module was renamed to :ref:`gcp_compute_instance_template_info <gcp_compute_instance_template_info_module>`.
* The ``gcp_compute_interconnect_attachment_facts`` module was renamed to :ref:`gcp_compute_interconnect_attachment_info <gcp_compute_interconnect_attachment_info_module>`.
* The ``gcp_compute_network_facts`` module was renamed to :ref:`gcp_compute_network_info <gcp_compute_network_info_module>`.
* The ``gcp_compute_region_disk_facts`` module was renamed to :ref:`gcp_compute_region_disk_info <gcp_compute_region_disk_info_module>`.
* The ``gcp_compute_route_facts`` module was renamed to :ref:`gcp_compute_route_info <gcp_compute_route_info_module>`.
* The ``gcp_compute_router_facts`` module was renamed to :ref:`gcp_compute_router_info <gcp_compute_router_info_module>`.
* The ``gcp_compute_ssl_certificate_facts`` module was renamed to :ref:`gcp_compute_ssl_certificate_info <gcp_compute_ssl_certificate_info_module>`.
* The ``gcp_compute_ssl_policy_facts`` module was renamed to :ref:`gcp_compute_ssl_policy_info <gcp_compute_ssl_policy_info_module>`.
* The ``gcp_compute_subnetwork_facts`` module was renamed to :ref:`gcp_compute_subnetwork_info <gcp_compute_subnetwork_info_module>`.
* The ``gcp_compute_target_http_proxy_facts`` module was renamed to :ref:`gcp_compute_target_http_proxy_info <gcp_compute_target_http_proxy_info_module>`.
* The ``gcp_compute_target_https_proxy_facts`` module was renamed to :ref:`gcp_compute_target_https_proxy_info <gcp_compute_target_https_proxy_info_module>`.
* The ``gcp_compute_target_pool_facts`` module was renamed to :ref:`gcp_compute_target_pool_info <gcp_compute_target_pool_info_module>`.
* The ``gcp_compute_target_ssl_proxy_facts`` module was renamed to :ref:`gcp_compute_target_ssl_proxy_info <gcp_compute_target_ssl_proxy_info_module>`.
* The ``gcp_compute_target_tcp_proxy_facts`` module was renamed to :ref:`gcp_compute_target_tcp_proxy_info <gcp_compute_target_tcp_proxy_info_module>`.
* The ``gcp_compute_target_vpn_gateway_facts`` module was renamed to :ref:`gcp_compute_target_vpn_gateway_info <gcp_compute_target_vpn_gateway_info_module>`.
* The ``gcp_compute_url_map_facts`` module was renamed to :ref:`gcp_compute_url_map_info <gcp_compute_url_map_info_module>`.
* The ``gcp_compute_vpn_tunnel_facts`` module was renamed to :ref:`gcp_compute_vpn_tunnel_info <gcp_compute_vpn_tunnel_info_module>`.
* The ``gcp_container_cluster_facts`` module was renamed to :ref:`gcp_container_cluster_info <gcp_container_cluster_info_module>`.
* The ``gcp_container_node_pool_facts`` module was renamed to :ref:`gcp_container_node_pool_info <gcp_container_node_pool_info_module>`.
* The ``gcp_dns_managed_zone_facts`` module was renamed to :ref:`gcp_dns_managed_zone_info <gcp_dns_managed_zone_info_module>`.
* The ``gcp_dns_resource_record_set_facts`` module was renamed to :ref:`gcp_dns_resource_record_set_info <gcp_dns_resource_record_set_info_module>`.
* The ``gcp_iam_role_facts`` module was renamed to :ref:`gcp_iam_role_info <gcp_iam_role_info_module>`.
* The ``gcp_iam_service_account_facts`` module was renamed to :ref:`gcp_iam_service_account_info <gcp_iam_service_account_info_module>`.
* The ``gcp_pubsub_subscription_facts`` module was renamed to :ref:`gcp_pubsub_subscription_info <gcp_pubsub_subscription_info_module>`.
* The ``gcp_pubsub_topic_facts`` module was renamed to :ref:`gcp_pubsub_topic_info <gcp_pubsub_topic_info_module>`.
* The ``gcp_redis_instance_facts`` module was renamed to :ref:`gcp_redis_instance_info <gcp_redis_instance_info_module>`.
* The ``gcp_resourcemanager_project_facts`` module was renamed to :ref:`gcp_resourcemanager_project_info <gcp_resourcemanager_project_info_module>`.
* The ``gcp_sourcerepo_repository_facts`` module was renamed to :ref:`gcp_sourcerepo_repository_info <gcp_sourcerepo_repository_info_module>`.
* The ``gcp_spanner_database_facts`` module was renamed to :ref:`gcp_spanner_database_info <gcp_spanner_database_info_module>`.
* The ``gcp_spanner_instance_facts`` module was renamed to :ref:`gcp_spanner_instance_info <gcp_spanner_instance_info_module>`.
* The ``gcp_sql_database_facts`` module was renamed to :ref:`gcp_sql_database_info <gcp_sql_database_info_module>`.
* The ``gcp_sql_instance_facts`` module was renamed to :ref:`gcp_sql_instance_info <gcp_sql_instance_info_module>`.
* The ``gcp_sql_user_facts`` module was renamed to :ref:`gcp_sql_user_info <gcp_sql_user_info_module>`.
* The ``gcp_tpu_node_facts`` module was renamed to :ref:`gcp_tpu_node_info <gcp_tpu_node_info_module>`.
* The ``iam_mfa_device_facts`` module was renamed to :ref:`iam_mfa_device_info <iam_mfa_device_info_module>`. * The ``iam_mfa_device_facts`` module was renamed to :ref:`iam_mfa_device_info <iam_mfa_device_info_module>`.
* The ``iam_role_facts`` module was renamed to :ref:`iam_role_info <iam_role_info_module>`. * The ``iam_role_facts`` module was renamed to :ref:`iam_role_info <iam_role_info_module>`.
* The ``iam_server_certificate_facts`` module was renamed to :ref:`iam_server_certificate_info <iam_server_certificate_info_module>`. * The ``iam_server_certificate_facts`` module was renamed to :ref:`iam_server_certificate_info <iam_server_certificate_info_module>`.

@ -29,10 +29,10 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_appengine_firewall_rule_facts module: gcp_appengine_firewall_rule_info
description: description:
- Gather facts for GCP FirewallRule - Gather info for GCP FirewallRule
short_description: Gather facts for GCP FirewallRule short_description: Gather info for GCP FirewallRule
version_added: 2.9 version_added: 2.9
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -44,8 +44,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a firewall rule facts" - name: get info on a firewall rule
gcp_appengine_firewall_rule_facts: gcp_appengine_firewall_rule_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
service_account_file: "/tmp/auth.pem" service_account_file: "/tmp/auth.pem"

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_bigquery_dataset_facts module: gcp_bigquery_dataset_info
description: description:
- Gather facts for GCP Dataset - Gather info for GCP Dataset
short_description: Gather facts for GCP Dataset - This module was called C(gcp_bigquery_dataset_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Dataset
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -44,8 +46,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a dataset facts" - name: get info on a dataset
gcp_bigquery_dataset_facts: gcp_bigquery_dataset_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
service_account_file: "/tmp/auth.pem" service_account_file: "/tmp/auth.pem"
@ -200,6 +202,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict()) module = GcpModule(argument_spec=dict())
if module._name == 'gcp_bigquery_dataset_facts':
module.deprecate("The 'gcp_bigquery_dataset_facts' module has been renamed to 'gcp_bigquery_dataset_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/bigquery'] module.params['scopes'] = ['https://www.googleapis.com/auth/bigquery']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_bigquery_table_facts module: gcp_bigquery_table_info
description: description:
- Gather facts for GCP Table - Gather info for GCP Table
short_description: Gather facts for GCP Table - This module was called C(gcp_bigquery_table_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Table
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -49,8 +51,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a table facts" - name: get info on a table
gcp_bigquery_table_facts: gcp_bigquery_table_info:
dataset: example_dataset dataset: example_dataset
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
@ -515,6 +517,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(dataset=dict(type='str'))) module = GcpModule(argument_spec=dict(dataset=dict(type='str')))
if module._name == 'gcp_bigquery_table_facts':
module.deprecate("The 'gcp_bigquery_table_facts' module has been renamed to 'gcp_bigquery_table_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/bigquery'] module.params['scopes'] = ['https://www.googleapis.com/auth/bigquery']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_cloudbuild_trigger_facts module: gcp_cloudbuild_trigger_info
description: description:
- Gather facts for GCP Trigger - Gather info for GCP Trigger
short_description: Gather facts for GCP Trigger - This module was called C(gcp_cloudbuild_trigger_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Trigger
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -44,8 +46,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a trigger facts" - name: get info on a trigger
gcp_cloudbuild_trigger_facts: gcp_cloudbuild_trigger_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
service_account_file: "/tmp/auth.pem" service_account_file: "/tmp/auth.pem"
@ -316,6 +318,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict()) module = GcpModule(argument_spec=dict())
if module._name == 'gcp_cloudbuild_trigger_facts':
module.deprecate("The 'gcp_cloudbuild_trigger_facts' module has been renamed to 'gcp_cloudbuild_trigger_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform'] module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']

@ -29,10 +29,10 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_cloudscheduler_job_facts module: gcp_cloudscheduler_job_info
description: description:
- Gather facts for GCP Job - Gather info for GCP Job
short_description: Gather facts for GCP Job short_description: Gather info for GCP Job
version_added: 2.9 version_added: 2.9
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -49,8 +49,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a job facts" - name: get info on a job
gcp_cloudscheduler_job_facts: gcp_cloudscheduler_job_info:
region: us-central1 region: us-central1
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

@ -29,10 +29,10 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_cloudtasks_queue_facts module: gcp_cloudtasks_queue_info
description: description:
- Gather facts for GCP Queue - Gather info for GCP Queue
short_description: Gather facts for GCP Queue short_description: Gather info for GCP Queue
version_added: 2.9 version_added: 2.9
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -49,8 +49,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a queue facts" - name: get info on a queue
gcp_cloudtasks_queue_facts: gcp_cloudtasks_queue_info:
location: us-central1 location: us-central1
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_address_facts module: gcp_compute_address_info
description: description:
- Gather facts for GCP Address - Gather info for GCP Address
short_description: Gather facts for GCP Address - This module was called C(gcp_compute_address_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Address
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -56,8 +58,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a address facts" - name: get info on an address
gcp_compute_address_facts: gcp_compute_address_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -151,6 +153,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_address_facts':
module.deprecate("The 'gcp_compute_address_facts' module has been renamed to 'gcp_compute_address_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,10 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_autoscaler_facts module: gcp_compute_autoscaler_info
description: description:
- Gather facts for GCP Autoscaler - Gather info for GCP Autoscaler
short_description: Gather facts for GCP Autoscaler short_description: Gather info for GCP Autoscaler
version_added: 2.9 version_added: 2.9
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +55,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a autoscaler facts" - name: get info on an autoscaler
gcp_compute_autoscaler_facts: gcp_compute_autoscaler_info:
zone: us-central1-a zone: us-central1-a
filters: filters:
- name = test_object - name = test_object

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_backend_bucket_facts module: gcp_compute_backend_bucket_info
description: description:
- Gather facts for GCP BackendBucket - Gather info for GCP BackendBucket
short_description: Gather facts for GCP BackendBucket - This module was called C(gcp_compute_backend_bucket_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP BackendBucket
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a backend bucket facts" - name: get info on a backend bucket
gcp_compute_backend_bucket_facts: gcp_compute_backend_bucket_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -134,6 +136,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_backend_bucket_facts':
module.deprecate("The 'gcp_compute_backend_bucket_facts' module has been renamed to 'gcp_compute_backend_bucket_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_backend_service_facts module: gcp_compute_backend_service_info
description: description:
- Gather facts for GCP BackendService - Gather info for GCP BackendService
short_description: Gather facts for GCP BackendService - This module was called C(gcp_compute_backend_service_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP BackendService
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a backend service facts" - name: get info on a backend service
gcp_compute_backend_service_facts: gcp_compute_backend_service_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -371,6 +373,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_backend_service_facts':
module.deprecate("The 'gcp_compute_backend_service_facts' module has been renamed to 'gcp_compute_backend_service_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_disk_facts module: gcp_compute_disk_info
description: description:
- Gather facts for GCP Disk - Gather info for GCP Disk
short_description: Gather facts for GCP Disk - This module was called C(gcp_compute_disk_facts) before Ansible 2.9. The usage has
not changed.
short_description: Gather info for GCP Disk
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a disk facts" - name: get info on a disk
gcp_compute_disk_facts: gcp_compute_disk_info:
zone: us-central1-a zone: us-central1-a
filters: filters:
- name = test_object - name = test_object
@ -294,6 +296,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str')))
if module._name == 'gcp_compute_disk_facts':
module.deprecate("The 'gcp_compute_disk_facts' module has been renamed to 'gcp_compute_disk_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_firewall_facts module: gcp_compute_firewall_info
description: description:
- Gather facts for GCP Firewall - Gather info for GCP Firewall
short_description: Gather facts for GCP Firewall - This module was called C(gcp_compute_firewall_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Firewall
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a firewall facts" - name: get info on a firewall
gcp_compute_firewall_facts: gcp_compute_firewall_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -250,6 +252,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_firewall_facts':
module.deprecate("The 'gcp_compute_firewall_facts' module has been renamed to 'gcp_compute_firewall_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_forwarding_rule_facts module: gcp_compute_forwarding_rule_info
description: description:
- Gather facts for GCP ForwardingRule - Gather info for GCP ForwardingRule
short_description: Gather facts for GCP ForwardingRule - This module was called C(gcp_compute_forwarding_rule_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP ForwardingRule
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -56,8 +58,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a forwarding rule facts" - name: get info on a forwarding rule
gcp_compute_forwarding_rule_facts: gcp_compute_forwarding_rule_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -252,6 +254,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_forwarding_rule_facts':
module.deprecate("The 'gcp_compute_forwarding_rule_facts' module has been renamed to 'gcp_compute_forwarding_rule_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_global_address_facts module: gcp_compute_global_address_info
description: description:
- Gather facts for GCP GlobalAddress - Gather info for GCP GlobalAddress
short_description: Gather facts for GCP GlobalAddress - This module was called C(gcp_compute_global_address_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP GlobalAddress
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a global address facts" - name: get info on a global address
gcp_compute_global_address_facts: gcp_compute_global_address_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -151,6 +153,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_global_address_facts':
module.deprecate("The 'gcp_compute_global_address_facts' module has been renamed to 'gcp_compute_global_address_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_global_forwarding_rule_facts module: gcp_compute_global_forwarding_rule_info
description: description:
- Gather facts for GCP GlobalForwardingRule - Gather info for GCP GlobalForwardingRule
short_description: Gather facts for GCP GlobalForwardingRule - This module was called C(gcp_compute_global_forwarding_rule_facts) before Ansible
2.9. The usage has not changed.
short_description: Gather info for GCP GlobalForwardingRule
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a global forwarding rule facts" - name: get info on a global forwarding rule
gcp_compute_global_forwarding_rule_facts: gcp_compute_global_forwarding_rule_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -181,6 +183,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_global_forwarding_rule_facts':
module.deprecate("The 'gcp_compute_global_forwarding_rule_facts' module has been renamed to 'gcp_compute_global_forwarding_rule_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_health_check_facts module: gcp_compute_health_check_info
description: description:
- Gather facts for GCP HealthCheck - Gather info for GCP HealthCheck
short_description: Gather facts for GCP HealthCheck - This module was called C(gcp_compute_health_check_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP HealthCheck
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a health check facts" - name: get info on a health check
gcp_compute_health_check_facts: gcp_compute_health_check_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -361,6 +363,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_health_check_facts':
module.deprecate("The 'gcp_compute_health_check_facts' module has been renamed to 'gcp_compute_health_check_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_http_health_check_facts module: gcp_compute_http_health_check_info
description: description:
- Gather facts for GCP HttpHealthCheck - Gather info for GCP HttpHealthCheck
short_description: Gather facts for GCP HttpHealthCheck - This module was called C(gcp_compute_http_health_check_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP HttpHealthCheck
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a http health check facts" - name: get info on an HTTP health check
gcp_compute_http_health_check_facts: gcp_compute_http_health_check_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -151,6 +153,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_http_health_check_facts':
module.deprecate("The 'gcp_compute_http_health_check_facts' module has been renamed to 'gcp_compute_http_health_check_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_https_health_check_facts module: gcp_compute_https_health_check_info
description: description:
- Gather facts for GCP HttpsHealthCheck - Gather info for GCP HttpsHealthCheck
short_description: Gather facts for GCP HttpsHealthCheck - This module was called C(gcp_compute_https_health_check_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP HttpsHealthCheck
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a https health check facts" - name: get info on an HTTPS health check
gcp_compute_https_health_check_facts: gcp_compute_https_health_check_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -151,6 +153,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_https_health_check_facts':
module.deprecate("The 'gcp_compute_https_health_check_facts' module has been renamed to 'gcp_compute_https_health_check_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_image_facts module: gcp_compute_image_info
description: description:
- Gather facts for GCP Image - Gather info for GCP Image
short_description: Gather facts for GCP Image - This module was called C(gcp_compute_image_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Image
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a image facts" - name: get info on an image
gcp_compute_image_facts: gcp_compute_image_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -293,6 +295,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_image_facts':
module.deprecate("The 'gcp_compute_image_facts' module has been renamed to 'gcp_compute_image_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -319,10 +319,9 @@ options:
type: str type: str
network: network:
description: description:
- Specifies the title of an existing network. When creating an instance, if - Specifies the title of an existing network. Not setting the network title
neither the network nor the subnetwork is specified, the default network will select the default network interface, which could have SSH already
global/networks/default is used; if the network is not specified but the configured.
subnetwork is specified, the network is inferred.
- 'This field represents a link to a Network resource in GCP. It can be specified - 'This field represents a link to a Network resource in GCP. It can be specified
in two ways. First, you can place a dictionary with key ''selfLink'' and in two ways. First, you can place a dictionary with key ''selfLink'' and
value of your resource''s selfLink Alternatively, you can add `register: value of your resource''s selfLink Alternatively, you can add `register:
@ -787,10 +786,8 @@ networkInterfaces:
type: str type: str
network: network:
description: description:
- Specifies the title of an existing network. When creating an instance, if - Specifies the title of an existing network. Not setting the network title
neither the network nor the subnetwork is specified, the default network global/networks/default will select the default network interface, which could have SSH already configured.
is used; if the network is not specified but the subnetwork is specified,
the network is inferred.
returned: success returned: success
type: dict type: dict
networkIP: networkIP:

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_instance_group_facts module: gcp_compute_instance_group_info
description: description:
- Gather facts for GCP InstanceGroup - Gather info for GCP InstanceGroup
short_description: Gather facts for GCP InstanceGroup - This module was called C(gcp_compute_instance_group_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP InstanceGroup
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a instance group facts" - name: get info on an instance group
gcp_compute_instance_group_facts: gcp_compute_instance_group_info:
zone: us-central1-a zone: us-central1-a
filters: filters:
- name = test_object - name = test_object
@ -160,6 +162,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str')))
if module._name == 'gcp_compute_instance_group_facts':
module.deprecate("The 'gcp_compute_instance_group_facts' module has been renamed to 'gcp_compute_instance_group_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_instance_group_manager_facts module: gcp_compute_instance_group_manager_info
description: description:
- Gather facts for GCP InstanceGroupManager - Gather info for GCP InstanceGroupManager
short_description: Gather facts for GCP InstanceGroupManager - This module was called C(gcp_compute_instance_group_manager_facts) before Ansible
2.9. The usage has not changed.
short_description: Gather info for GCP InstanceGroupManager
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a instance group manager facts" - name: get info on an instance group manager
gcp_compute_instance_group_manager_facts: gcp_compute_instance_group_manager_info:
zone: us-west1-a zone: us-west1-a
filters: filters:
- name = test_object - name = test_object
@ -235,6 +237,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str')))
if module._name == 'gcp_compute_instance_group_manager_facts':
module.deprecate("The 'gcp_compute_instance_group_manager_facts' module has been renamed to 'gcp_compute_instance_group_manager_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_instance_facts module: gcp_compute_instance_info
description: description:
- Gather facts for GCP Instance - Gather info for GCP Instance
short_description: Gather facts for GCP Instance - This module was called C(gcp_compute_instance_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Instance
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a instance facts" - name: get info on an instance
gcp_compute_instance_facts: gcp_compute_instance_info:
zone: us-central1-a zone: us-central1-a
filters: filters:
- name = test_object - name = test_object
@ -488,6 +490,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), zone=dict(required=True, type='str')))
if module._name == 'gcp_compute_instance_facts':
module.deprecate("The 'gcp_compute_instance_facts' module has been renamed to 'gcp_compute_instance_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_instance_template_facts module: gcp_compute_instance_template_info
description: description:
- Gather facts for GCP InstanceTemplate - Gather info for GCP InstanceTemplate
short_description: Gather facts for GCP InstanceTemplate - This module was called C(gcp_compute_instance_template_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP InstanceTemplate
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a instance template facts" - name: get info on an instance template
gcp_compute_instance_template_facts: gcp_compute_instance_template_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -480,6 +482,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_instance_template_facts':
module.deprecate("The 'gcp_compute_instance_template_facts' module has been renamed to 'gcp_compute_instance_template_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_interconnect_attachment_facts module: gcp_compute_interconnect_attachment_info
description: description:
- Gather facts for GCP InterconnectAttachment - Gather info for GCP InterconnectAttachment
short_description: Gather facts for GCP InterconnectAttachment - This module was called C(gcp_compute_interconnect_attachment_facts) before Ansible
2.9. The usage has not changed.
short_description: Gather info for GCP InterconnectAttachment
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a interconnect attachment facts" - name: get info on an interconnect attachment
gcp_compute_interconnect_attachment_facts: gcp_compute_interconnect_attachment_info:
region: us-central1 region: us-central1
filters: filters:
- name = test_object - name = test_object
@ -215,6 +217,11 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_interconnect_attachment_facts':
module.deprecate(
"The 'gcp_compute_interconnect_attachment_facts' module has been renamed to 'gcp_compute_interconnect_attachment_info'", version='2.13'
)
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_network_facts module: gcp_compute_network_info
description: description:
- Gather facts for GCP Network - Gather info for GCP Network
short_description: Gather facts for GCP Network - This module was called C(gcp_compute_network_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Network
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a network facts" - name: get info on a network
gcp_compute_network_facts: gcp_compute_network_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -154,6 +156,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_network_facts':
module.deprecate("The 'gcp_compute_network_facts' module has been renamed to 'gcp_compute_network_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_region_disk_facts module: gcp_compute_region_disk_info
description: description:
- Gather facts for GCP RegionDisk - Gather info for GCP RegionDisk
short_description: Gather facts for GCP RegionDisk - This module was called C(gcp_compute_region_disk_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP RegionDisk
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a region disk facts" - name: get info on a region disk
gcp_compute_region_disk_facts: gcp_compute_region_disk_info:
region: us-central1 region: us-central1
filters: filters:
- name = test_object - name = test_object
@ -240,6 +242,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_region_disk_facts':
module.deprecate("The 'gcp_compute_region_disk_facts' module has been renamed to 'gcp_compute_region_disk_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_route_facts module: gcp_compute_route_info
description: description:
- Gather facts for GCP Route - Gather info for GCP Route
short_description: Gather facts for GCP Route - This module was called C(gcp_compute_route_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Route
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a route facts" - name: get info on a route
gcp_compute_route_facts: gcp_compute_route_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -154,6 +156,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_route_facts':
module.deprecate("The 'gcp_compute_route_facts' module has been renamed to 'gcp_compute_route_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_router_facts module: gcp_compute_router_info
description: description:
- Gather facts for GCP Router - Gather info for GCP Router
short_description: Gather facts for GCP Router - This module was called C(gcp_compute_router_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Router
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a router facts" - name: get info on a router
gcp_compute_router_facts: gcp_compute_router_info:
region: us-central1 region: us-central1
filters: filters:
- name = test_object - name = test_object
@ -170,6 +172,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_router_facts':
module.deprecate("The 'gcp_compute_router_facts' module has been renamed to 'gcp_compute_router_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_ssl_certificate_facts module: gcp_compute_ssl_certificate_info
description: description:
- Gather facts for GCP SslCertificate - Gather info for GCP SslCertificate
short_description: Gather facts for GCP SslCertificate - This module was called C(gcp_compute_ssl_certificate_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP SslCertificate
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a ssl certificate facts" - name: get info on an SSL certificate
gcp_compute_ssl_certificate_facts: gcp_compute_ssl_certificate_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -118,6 +120,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_ssl_certificate_facts':
module.deprecate("The 'gcp_compute_ssl_certificate_facts' module has been renamed to 'gcp_compute_ssl_certificate_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_ssl_policy_facts module: gcp_compute_ssl_policy_info
description: description:
- Gather facts for GCP SslPolicy - Gather info for GCP SslPolicy
short_description: Gather facts for GCP SslPolicy - This module was called C(gcp_compute_ssl_policy_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP SslPolicy
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a ssl policy facts" - name: get info on an SSL policy
gcp_compute_ssl_policy_facts: gcp_compute_ssl_policy_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -156,6 +158,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_ssl_policy_facts':
module.deprecate("The 'gcp_compute_ssl_policy_facts' module has been renamed to 'gcp_compute_ssl_policy_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_subnetwork_facts module: gcp_compute_subnetwork_info
description: description:
- Gather facts for GCP Subnetwork - Gather info for GCP Subnetwork
short_description: Gather facts for GCP Subnetwork - This module was called C(gcp_compute_subnetwork_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Subnetwork
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a subnetwork facts" - name: get info on a subnetwork
gcp_compute_subnetwork_facts: gcp_compute_subnetwork_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -179,6 +181,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_subnetwork_facts':
module.deprecate("The 'gcp_compute_subnetwork_facts' module has been renamed to 'gcp_compute_subnetwork_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_http_proxy_facts module: gcp_compute_target_http_proxy_info
description: description:
- Gather facts for GCP TargetHttpProxy - Gather info for GCP TargetHttpProxy
short_description: Gather facts for GCP TargetHttpProxy - This module was called C(gcp_compute_target_http_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetHttpProxy
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target http proxy facts" - name: get info on a target HTTP proxy
gcp_compute_target_http_proxy_facts: gcp_compute_target_http_proxy_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -112,6 +114,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_http_proxy_facts':
module.deprecate("The 'gcp_compute_target_http_proxy_facts' module has been renamed to 'gcp_compute_target_http_proxy_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_https_proxy_facts module: gcp_compute_target_https_proxy_info
description: description:
- Gather facts for GCP TargetHttpsProxy - Gather info for GCP TargetHttpsProxy
short_description: Gather facts for GCP TargetHttpsProxy - This module was called C(gcp_compute_target_https_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetHttpsProxy
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target https proxy facts" - name: get info on a target HTTPS proxy
gcp_compute_target_https_proxy_facts: gcp_compute_target_https_proxy_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -135,6 +137,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_https_proxy_facts':
module.deprecate("The 'gcp_compute_target_https_proxy_facts' module has been renamed to 'gcp_compute_target_https_proxy_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_pool_facts module: gcp_compute_target_pool_info
description: description:
- Gather facts for GCP TargetPool - Gather info for GCP TargetPool
short_description: Gather facts for GCP TargetPool - This module was called C(gcp_compute_target_pool_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP TargetPool
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target pool facts" - name: get info on a target pool
gcp_compute_target_pool_facts: gcp_compute_target_pool_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -171,6 +173,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_target_pool_facts':
module.deprecate("The 'gcp_compute_target_pool_facts' module has been renamed to 'gcp_compute_target_pool_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_ssl_proxy_facts module: gcp_compute_target_ssl_proxy_info
description: description:
- Gather facts for GCP TargetSslProxy - Gather info for GCP TargetSslProxy
short_description: Gather facts for GCP TargetSslProxy - This module was called C(gcp_compute_target_ssl_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetSslProxy
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target ssl proxy facts" - name: get info on a target SSL proxy
gcp_compute_target_ssl_proxy_facts: gcp_compute_target_ssl_proxy_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -131,6 +133,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_ssl_proxy_facts':
module.deprecate("The 'gcp_compute_target_ssl_proxy_facts' module has been renamed to 'gcp_compute_target_ssl_proxy_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_tcp_proxy_facts module: gcp_compute_target_tcp_proxy_info
description: description:
- Gather facts for GCP TargetTcpProxy - Gather info for GCP TargetTcpProxy
short_description: Gather facts for GCP TargetTcpProxy - This module was called C(gcp_compute_target_tcp_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetTcpProxy
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target tcp proxy facts" - name: get info on a target TCP proxy
gcp_compute_target_tcp_proxy_facts: gcp_compute_target_tcp_proxy_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -117,6 +119,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_tcp_proxy_facts':
module.deprecate("The 'gcp_compute_target_tcp_proxy_facts' module has been renamed to 'gcp_compute_target_tcp_proxy_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_target_vpn_gateway_facts module: gcp_compute_target_vpn_gateway_info
description: description:
- Gather facts for GCP TargetVpnGateway - Gather info for GCP TargetVpnGateway
short_description: Gather facts for GCP TargetVpnGateway - This module was called C(gcp_compute_target_vpn_gateway_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetVpnGateway
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a target vpn gateway facts" - name: get info on a target VPN gateway
gcp_compute_target_vpn_gateway_facts: gcp_compute_target_vpn_gateway_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -133,6 +135,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_target_vpn_gateway_facts':
module.deprecate("The 'gcp_compute_target_vpn_gateway_facts' module has been renamed to 'gcp_compute_target_vpn_gateway_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_url_map_facts module: gcp_compute_url_map_info
description: description:
- Gather facts for GCP UrlMap - Gather info for GCP UrlMap
short_description: Gather facts for GCP UrlMap - This module was called C(gcp_compute_url_map_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP UrlMap
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -50,8 +52,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a url map facts" - name: get info on a URL map
gcp_compute_url_map_facts: gcp_compute_url_map_info:
filters: filters:
- name = test_object - name = test_object
project: test_project project: test_project
@ -213,6 +215,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_url_map_facts':
module.deprecate("The 'gcp_compute_url_map_facts' module has been renamed to 'gcp_compute_url_map_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_compute_vpn_tunnel_facts module: gcp_compute_vpn_tunnel_info
description: description:
- Gather facts for GCP VpnTunnel - Gather info for GCP VpnTunnel
short_description: Gather facts for GCP VpnTunnel - This module was called C(gcp_compute_vpn_tunnel_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP VpnTunnel
version_added: 2.7 version_added: 2.7
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -55,8 +57,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a vpn tunnel facts" - name: get info on a VPN tunnel
gcp_compute_vpn_tunnel_facts: gcp_compute_vpn_tunnel_info:
region: us-west1 region: us-west1
filters: filters:
- name = test_object - name = test_object
@ -160,6 +162,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str'))) module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_vpn_tunnel_facts':
module.deprecate("The 'gcp_compute_vpn_tunnel_facts' module has been renamed to 'gcp_compute_vpn_tunnel_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute'] module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_container_cluster_facts module: gcp_container_cluster_info
description: description:
- Gather facts for GCP Cluster - Gather info for GCP Cluster
short_description: Gather facts for GCP Cluster - This module was called C(gcp_container_cluster_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Cluster
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -53,8 +55,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a cluster facts" - name: get info on a cluster
gcp_container_cluster_facts: gcp_container_cluster_info:
location: us-central1-a location: us-central1-a
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
@ -578,6 +580,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone']))) module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone'])))
if module._name == 'gcp_container_cluster_facts':
module.deprecate("The 'gcp_container_cluster_facts' module has been renamed to 'gcp_container_cluster_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform'] module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_container_node_pool_facts module: gcp_container_node_pool_info
description: description:
- Gather facts for GCP NodePool - Gather info for GCP NodePool
short_description: Gather facts for GCP NodePool - This module was called C(gcp_container_node_pool_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP NodePool
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -63,8 +65,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a node pool facts" - name: get info on a node pool
gcp_container_node_pool_facts: gcp_container_node_pool_info:
cluster: "{{ cluster }}" cluster: "{{ cluster }}"
location: us-central1-a location: us-central1-a
project: test_project project: test_project
@ -363,6 +365,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone']), cluster=dict(required=True, type='dict'))) module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone']), cluster=dict(required=True, type='dict')))
if module._name == 'gcp_container_node_pool_facts':
module.deprecate("The 'gcp_container_node_pool_facts' module has been renamed to 'gcp_container_node_pool_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform'] module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_dns_managed_zone_facts module: gcp_dns_managed_zone_info
description: description:
- Gather facts for GCP ManagedZone - Gather info for GCP ManagedZone
short_description: Gather facts for GCP ManagedZone - This module was called C(gcp_dns_managed_zone_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP ManagedZone
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -48,8 +50,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a managed zone facts" - name: get info on a managed zone
gcp_dns_managed_zone_facts: gcp_dns_managed_zone_info:
dns_name: test.somewild2.example.com. dns_name: test.somewild2.example.com.
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
@ -206,6 +208,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(dns_name=dict(type='list', elements='str'))) module = GcpModule(argument_spec=dict(dns_name=dict(type='list', elements='str')))
if module._name == 'gcp_dns_managed_zone_facts':
module.deprecate("The 'gcp_dns_managed_zone_facts' module has been renamed to 'gcp_dns_managed_zone_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite'] module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_dns_resource_record_set_facts module: gcp_dns_resource_record_set_info
description: description:
- Gather facts for GCP ResourceRecordSet - Gather info for GCP ResourceRecordSet
short_description: Gather facts for GCP ResourceRecordSet - This module was called C(gcp_dns_resource_record_set_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP ResourceRecordSet
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -54,8 +56,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a resource record set facts" - name: get info on a resource record set
gcp_dns_resource_record_set_facts: gcp_dns_resource_record_set_info:
managed_zone: "{{ managed_zone }}" managed_zone: "{{ managed_zone }}"
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
@ -109,6 +111,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict(managed_zone=dict(required=True, type='dict'))) module = GcpModule(argument_spec=dict(managed_zone=dict(required=True, type='dict')))
if module._name == 'gcp_dns_resource_record_set_facts':
module.deprecate("The 'gcp_dns_resource_record_set_facts' module has been renamed to 'gcp_dns_resource_record_set_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite'] module.params['scopes'] = ['https://www.googleapis.com/auth/ndev.clouddns.readwrite']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_iam_role_facts module: gcp_iam_role_info
description: description:
- Gather facts for GCP Role - Gather info for GCP Role
short_description: Gather facts for GCP Role - This module was called C(gcp_iam_role_facts) before Ansible 2.9. The usage has not
changed.
short_description: Gather info for GCP Role
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -44,8 +46,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a role facts" - name: get info on a role
gcp_iam_role_facts: gcp_iam_role_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
service_account_file: "/tmp/auth.pem" service_account_file: "/tmp/auth.pem"
@ -104,6 +106,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict()) module = GcpModule(argument_spec=dict())
if module._name == 'gcp_iam_role_facts':
module.deprecate("The 'gcp_iam_role_facts' module has been renamed to 'gcp_iam_role_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/iam'] module.params['scopes'] = ['https://www.googleapis.com/auth/iam']

@ -29,10 +29,12 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ["preview"], 'supported
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: gcp_iam_service_account_facts module: gcp_iam_service_account_info
description: description:
- Gather facts for GCP ServiceAccount - Gather info for GCP ServiceAccount
short_description: Gather facts for GCP ServiceAccount - This module was called C(gcp_iam_service_account_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP ServiceAccount
version_added: 2.8 version_added: 2.8
author: Google Inc. (@googlecloudplatform) author: Google Inc. (@googlecloudplatform)
requirements: requirements:
@ -44,8 +46,8 @@ extends_documentation_fragment: gcp
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: " a service account facts" - name: get info on a service account
gcp_iam_service_account_facts: gcp_iam_service_account_info:
project: test_project project: test_project
auth_kind: serviceaccount auth_kind: serviceaccount
service_account_file: "/tmp/auth.pem" service_account_file: "/tmp/auth.pem"
@ -103,6 +105,9 @@ import json
def main(): def main():
module = GcpModule(argument_spec=dict()) module = GcpModule(argument_spec=dict())
if module._name == 'gcp_iam_service_account_facts':
module.deprecate("The 'gcp_iam_service_account_facts' module has been renamed to 'gcp_iam_service_account_info'", version='2.13')
if not module.params['scopes']: if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/iam'] module.params['scopes'] = ['https://www.googleapis.com/auth/iam']

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save