mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-02 14:40:26 -07:00
New GCP module: DNS Managed Zones (gcp_dns_managed_zone.py) (#35014)
This commit is contained in:
parent
f5cd996ec3
commit
e86a79b758
9 changed files with 617 additions and 0 deletions
47
plugins/doc_fragment/gcp.py
Normal file
47
plugins/doc_fragment/gcp.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Copyright: (c) 2018, Google Inc.
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
# GCP doc fragment.
|
||||
DOCUMENTATION = '''
|
||||
options:
|
||||
state:
|
||||
description:
|
||||
- Whether the given zone should or should not be present.
|
||||
required: true
|
||||
choices: ["present", "absent"]
|
||||
default: "present"
|
||||
project:
|
||||
description:
|
||||
- The Google Cloud Platform project to use.
|
||||
default: null
|
||||
auth_kind:
|
||||
description:
|
||||
- The type of credential used.
|
||||
required: true
|
||||
choices: ["machineaccount", "serviceaccount", "application"]
|
||||
service_account_file:
|
||||
description:
|
||||
- The path of a Service Account JSON file if serviceaccount is selected as type.
|
||||
service_account_email:
|
||||
description:
|
||||
- An optional service account email address if machineaccount is selected
|
||||
and the user does not wish to use the default email.
|
||||
scopes:
|
||||
description:
|
||||
- Array of scopes to be used.
|
||||
required: true
|
||||
notes:
|
||||
- For authentication, you can set service_account_file using the
|
||||
C(GCP_SERVICE_ACCOUNT_FILE) env variable.
|
||||
- For authentication, you can set service_account_email using the
|
||||
C(GCP_SERVICE_ACCOUNT_EMAIL) env variable.
|
||||
- For authentication, you can set auth_kind using the C(GCP_AUTH_KIND) env
|
||||
variable.
|
||||
- For authentication, you can set scopes using the C(GCP_SCOPES) env variable.
|
||||
- Environment variables values will only be used if the playbook values are
|
||||
not set.
|
||||
- The I(service_account_email) and I(service_account_file) options are
|
||||
mutually exclusive.
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue