Skip to content

Commit c4f4844

Browse files
Initial commit for dnac_api_client
1 parent 1d9a542 commit c4f4844

File tree

749 files changed

+102029
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

749 files changed

+102029
-1
lines changed

.gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.python-version
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
57+
# Sphinx documentation
58+
docs/_build/
59+
60+
# PyBuilder
61+
target/
62+
63+
#Ipython Notebook
64+
.ipynb_checkpoints

.swagger-codegen-ignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.1

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
#- "3.5-dev" # 3.5 development branch
10+
#- "nightly" # points to the latest development branch e.g. 3.6-dev
11+
# command to install dependencies
12+
install: "pip install -r requirements.txt"
13+
# command to run tests
14+
script: nosetests

README.md

+505-1
Large diffs are not rendered by default.

dnac_api_client/__init__.py

+267
Large diffs are not rendered by default.

dnac_api_client/api/__init__.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from __future__ import absolute_import
2+
3+
# flake8: noqa
4+
5+
# import apis into api package
6+
from dnac_api_client.api.authentication_api import AuthenticationApi
7+
from dnac_api_client.api.command_runner_api import CommandRunnerApi
8+
from dnac_api_client.api.intent_api_api import IntentAPIApi
9+
from dnac_api_client.api.intent_application_policy_api import IntentApplicationPolicyApi
10+
from dnac_api_client.api.intent_clients_api import IntentClientsApi
11+
from dnac_api_client.api.intent_connectivity_api import IntentConnectivityApi
12+
from dnac_api_client.api.intent_detail_api import IntentDetailApi
13+
from dnac_api_client.api.intent_devices_api import IntentDevicesApi
14+
from dnac_api_client.api.intent_health_api import IntentHealthApi
15+
from dnac_api_client.api.intent_sites_api import IntentSitesApi
16+
from dnac_api_client.api.intent_wlc_api import IntentWLCApi
17+
from dnac_api_client.api.network_device_api import NetworkDeviceApi
18+
from dnac_api_client.api.network_discovery_api import NetworkDiscoveryApi
19+
from dnac_api_client.api.networks_api import NetworksApi
20+
from dnac_api_client.api.path_trace_api import PathTraceApi
21+
from dnac_api_client.api.pn_p_api import PnPApi
22+
from dnac_api_client.api.swim_api import SWIMApi
23+
from dnac_api_client.api.system_api import SystemApi
24+
from dnac_api_client.api.task_api import TaskApi
25+
from dnac_api_client.api.template_programmmer_api import TemplateProgrammmerApi
26+
from dnac_api_client.api.default_api import DefaultApi
+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# coding: utf-8
2+
3+
"""
4+
Cisco DNA Center Platform v. 1.2.x (EFT)
5+
6+
REST API (EFT) # noqa: E501
7+
8+
OpenAPI spec version: 1.0.0
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import re # noqa: F401
17+
18+
# python 2 and python 3 compatibility library
19+
import six
20+
21+
from dnac_api_client.api_client import ApiClient
22+
23+
24+
class AuthenticationApi(object):
25+
"""NOTE: This class is auto generated by the swagger code generator program.
26+
27+
Do not edit the class manually.
28+
Ref: https://github.com/swagger-api/swagger-codegen
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = ApiClient()
34+
self.api_client = api_client
35+
36+
def api_system_v1_auth_token_post(self, **kwargs): # noqa: E501
37+
"""Generate Token # noqa: E501
38+
39+
This method is used to generate token. # noqa: E501
40+
This method makes a synchronous HTTP request by default. To make an
41+
asynchronous HTTP request, please pass async=True
42+
>>> thread = api.api_system_v1_auth_token_post(async=True)
43+
>>> result = thread.get()
44+
45+
:param async bool
46+
:return: GenerateTokenResponse
47+
If the method is called asynchronously,
48+
returns the request thread.
49+
"""
50+
kwargs['_return_http_data_only'] = True
51+
if kwargs.get('async'):
52+
return self.api_system_v1_auth_token_post_with_http_info(**kwargs) # noqa: E501
53+
else:
54+
(data) = self.api_system_v1_auth_token_post_with_http_info(**kwargs) # noqa: E501
55+
return data
56+
57+
def api_system_v1_auth_token_post_with_http_info(self, **kwargs): # noqa: E501
58+
"""Generate Token # noqa: E501
59+
60+
This method is used to generate token. # noqa: E501
61+
This method makes a synchronous HTTP request by default. To make an
62+
asynchronous HTTP request, please pass async=True
63+
>>> thread = api.api_system_v1_auth_token_post_with_http_info(async=True)
64+
>>> result = thread.get()
65+
66+
:param async bool
67+
:return: GenerateTokenResponse
68+
If the method is called asynchronously,
69+
returns the request thread.
70+
"""
71+
72+
all_params = [] # noqa: E501
73+
all_params.append('async')
74+
all_params.append('_return_http_data_only')
75+
all_params.append('_preload_content')
76+
all_params.append('_request_timeout')
77+
78+
params = locals()
79+
for key, val in six.iteritems(params['kwargs']):
80+
if key not in all_params:
81+
raise TypeError(
82+
"Got an unexpected keyword argument '%s'"
83+
" to method api_system_v1_auth_token_post" % key
84+
)
85+
params[key] = val
86+
del params['kwargs']
87+
88+
collection_formats = {}
89+
90+
path_params = {}
91+
92+
query_params = []
93+
94+
header_params = {}
95+
96+
form_params = []
97+
local_var_files = {}
98+
99+
body_params = None
100+
# HTTP header `Accept`
101+
header_params['Accept'] = self.api_client.select_header_accept(
102+
['application/json']) # noqa: E501
103+
104+
# HTTP header `Content-Type`
105+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
106+
['application/json']) # noqa: E501
107+
108+
# Authentication setting
109+
auth_settings = ['basicAuth'] # noqa: E501
110+
111+
return self.api_client.call_api(
112+
'/api/system/v1/auth/token', 'POST',
113+
path_params,
114+
query_params,
115+
header_params,
116+
body=body_params,
117+
post_params=form_params,
118+
files=local_var_files,
119+
response_type='GenerateTokenResponse', # noqa: E501
120+
auth_settings=auth_settings,
121+
async=params.get('async'),
122+
_return_http_data_only=params.get('_return_http_data_only'),
123+
_preload_content=params.get('_preload_content', True),
124+
_request_timeout=params.get('_request_timeout'),
125+
collection_formats=collection_formats)

0 commit comments

Comments
 (0)