-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from nautobot/develop
Merge to Main for Locations Release
- Loading branch information
Showing
69 changed files
with
899 additions
and
2,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright: (c) 2023, Network to Code (@networktocode) <info@networktocode.com> | ||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
||
|
||
class ModuleDocFragment(object): | ||
BASE = r""" | ||
requirements: | ||
- pynautobot | ||
options: | ||
url: | ||
description: | ||
- "The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)" | ||
required: true | ||
type: str | ||
token: | ||
description: | ||
- "The token created within Nautobot to authorize API access" | ||
required: true | ||
type: str | ||
state: | ||
description: | ||
- "Use C(present) or C(absent) for adding or removing." | ||
choices: [ absent, present ] | ||
default: present | ||
type: str | ||
query_params: | ||
version_added: "3.0.0" | ||
description: | ||
- "This can be used to override the specified values in ALLOWED_QUERY_PARAMS that is defined" | ||
- "in plugins/module_utils/utils.py and provides control to users on what may make" | ||
- "an object unique in their environment." | ||
required: false | ||
type: list | ||
elements: str | ||
validate_certs: | ||
description: | ||
- "If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates." | ||
required: false | ||
default: true | ||
type: raw | ||
api_version: | ||
version_added: "4.1.0" | ||
description: | ||
- "API Version Nautobot REST API" | ||
required: false | ||
type: str | ||
""" | ||
|
||
TAGS = r""" | ||
options: | ||
tags: | ||
description: | ||
- "Any tags that this item may need to be associated with" | ||
required: false | ||
type: list | ||
elements: raw | ||
version_added: "3.0.0" | ||
""" | ||
|
||
CUSTOM_FIELDS = r""" | ||
options: | ||
custom_fields: | ||
description: | ||
- "Must exist in Nautobot and in key/value format" | ||
required: false | ||
type: dict | ||
version_added: "3.0.0" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.