Debian Codegraph @

ansible_collections/google/cloud/plugins/doc_fragments/gcp.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2018, Google Inc.
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6
7 class ModuleDocFragment(object):
8 # GCP doc fragment.
9 DOCUMENTATION = r"""
10 options:
11 project:
12 description:
13 - The Google Cloud Platform project to use.
14 type: str
15 access_token:
16 description:
17 - The access token used to authenticate.
18 type: str
19 auth_kind:
20 description:
21 - The type of credential used.
22 type: str
23 required: true
24 choices: [accesstoken, application, machineaccount, serviceaccount]
25 service_account_contents:
26 description:
27 - The contents of a Service Account JSON file,
28 - either in a dictionary or as a JSON string that represents it.
29 type: jsonarg
30 service_account_file:
31 description:
32 - The path of a Service Account JSON file if serviceaccount
33 - is selected as type.
34 type: path
35 service_account_email:
36 description:
37 - An optional service account email address if machineaccount is
38 - selected and the user does not wish to use the default email.
39 type: str
40 scopes:
41 description:
42 - Array of scopes to be used.
43 type: list
44 elements: str
45 env_type:
46 description:
47 - Specifies which Ansible environment you're running this module within.
48 - This should not be set unless you know what you're doing.
49 - This only alters the User Agent string for any API requests.
50 type: str
51 notes:
52 - For authentication, you can set auth_kind using the C(GCP_AUTH_KIND) env
53 variable.
54 - For authentication, you can set service_account_file using the
55 C(GCP_SERVICE_ACCOUNT_FILE) env variable.
56 - For authentication, you can set service_account_contents using the
57 C(GCP_SERVICE_ACCOUNT_CONTENTS) env variable.
58 - For authentication, you can set service_account_email using the
59 C(GCP_SERVICE_ACCOUNT_EMAIL) env variable.
60 - For authentication, you can set access_token using the
61 C(GCP_ACCESS_TOKEN) env variable.
62 - For authentication, you can set scopes using the C(GCP_SCOPES) env variable.
63 - Environment variables values will only be used if the playbook values are
64 not set.
65 - The O(service_account_email), O(service_account_file),
66 O(service_account_file) and O(access_token) options are mutually exclusive.
67 """