Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
urllib3 == 1.26.19
certifi == 2024.7.4
attrs==22.2.0
jinja2
jinja2
python-dateutil
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ sphinx
nbsphinx
myst-parser
furo

python-dateutil
tox
3 changes: 2 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pytest
keyring
coverage
graphviz
cattrs
cattrs
python-dateutil
587 changes: 0 additions & 587 deletions src/clients/ctm_api_client/README.md

This file was deleted.

754 changes: 331 additions & 423 deletions src/clients/ctm_api_client/__init__.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/clients/ctm_api_client/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

# import apis into api package
from clients.ctm_api_client.api.archive_api import ArchiveApi
from clients.ctm_api_client.api.authentication_api import AuthenticationApi
from clients.ctm_api_client.api.build_api import BuildApi
from clients.ctm_api_client.api.config_api import ConfigApi
from clients.ctm_api_client.api.deploy_api import DeployApi
from clients.ctm_api_client.api.provision_api import ProvisionApi
from clients.ctm_api_client.api.reporting_api import ReportingApi
from clients.ctm_api_client.api.run_api import RunApi
from clients.ctm_api_client.api.session_api import SessionApi
from clients.ctm_api_client.api.status_api import StatusApi
from clients.ctm_api_client.api.usage_api import UsageApi
741 changes: 444 additions & 297 deletions src/clients/ctm_api_client/api/archive_api.py

Large diffs are not rendered by default.

165 changes: 101 additions & 64 deletions src/clients/ctm_api_client/api/build_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

Provides access to BMC Control-M Services # noqa: E501

OpenAPI spec version: 9.20.215
The version of the OpenAPI document: 9.22.30
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Generated by: https://openapi-generator.tech
"""


Expand All @@ -19,13 +19,17 @@
import six

from clients.ctm_api_client.api_client import ApiClient
from clients.ctm_api_client.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)


class BuildApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech

Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""

def __init__(self, api_client=None):
Expand All @@ -39,116 +43,149 @@ def build_file(self, definitions_file, **kwargs): # noqa: E501
Compile the provided definition file (JSON or zip) to verify it is valid for Control-M. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.build_file(definitions_file, async_req=True)
>>> result = thread.get()

:param async_req bool
:param file definitions_file: A file that contains definitions to be compiled. Can be either a JSON definition file, or a zip file that contains multiple JSON definition files. (required)
:param file deploy_descriptor_file: Deploy Descriptor JSON file.
:return: list[DeploymentFileResults]
:param definitions_file: A file that contains definitions to be compiled. Can be either a JSON definition file, or a zip file that contains multiple JSON definition files. (required)
:type definitions_file: file
:param deploy_descriptor_file: Deploy Descriptor JSON file.
:type deploy_descriptor_file: file
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: list[DeploymentFileResults]
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.build_file_with_http_info(
definitions_file, **kwargs
) # noqa: E501
else:
(data) = self.build_file_with_http_info(
definitions_file, **kwargs
) # noqa: E501
return data
kwargs['_return_http_data_only'] = True
return self.build_file_with_http_info(definitions_file, **kwargs) # noqa: E501

def build_file_with_http_info(self, definitions_file, **kwargs): # noqa: E501
"""Compile definitions file to check its validity # noqa: E501

Compile the provided definition file (JSON or zip) to verify it is valid for Control-M. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.build_file_with_http_info(definitions_file, async_req=True)
>>> result = thread.get()

:param async_req bool
:param file definitions_file: A file that contains definitions to be compiled. Can be either a JSON definition file, or a zip file that contains multiple JSON definition files. (required)
:param file deploy_descriptor_file: Deploy Descriptor JSON file.
:return: list[DeploymentFileResults]
:param definitions_file: A file that contains definitions to be compiled. Can be either a JSON definition file, or a zip file that contains multiple JSON definition files. (required)
:type definitions_file: file
:param deploy_descriptor_file: Deploy Descriptor JSON file.
:type deploy_descriptor_file: file
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:type _content_type: string, optional: force content-type for the request
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(list[DeploymentFileResults], status_code(int), headers(HTTPHeaderDict))
"""

all_params = ["definitions_file", "deploy_descriptor_file"] # noqa: E501
all_params.append("async_req")
all_params.append("_return_http_data_only")
all_params.append("_preload_content")
all_params.append("_request_timeout")
local_var_params = locals()

all_params = [
'definitions_file',
'deploy_descriptor_file'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth',
'_content_type',
'_headers'
]
)

params = locals()
for key, val in six.iteritems(params["kwargs"]):
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method build_file" % key
)
params[key] = val
del params["kwargs"]
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'definitions_file' is set
if self.api_client.client_side_validation and (
"definitions_file" not in params or params["definitions_file"] is None
): # noqa: E501
raise ValueError(
"Missing the required parameter `definitions_file` when calling `build_file`"
) # noqa: E501
if self.api_client.client_side_validation and ('definitions_file' not in local_var_params or # noqa: E501
local_var_params['definitions_file'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `definitions_file` when calling `build_file`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []

header_params = {}
header_params = dict(local_var_params.get('_headers', {}))

form_params = []
local_var_files = {}
if "definitions_file" in params:
local_var_files["definitionsFile"] = params[
"definitions_file"
] # noqa: E501
if "deploy_descriptor_file" in params:
local_var_files["deployDescriptorFile"] = params[
"deploy_descriptor_file"
] # noqa: E501
if 'definitions_file' in local_var_params:
local_var_files['definitionsFile'] = local_var_params['definitions_file'] # noqa: E501
if 'deploy_descriptor_file' in local_var_params:
local_var_files['deployDescriptorFile'] = local_var_params['deploy_descriptor_file'] # noqa: E501

body_params = None
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
) # noqa: E501
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# HTTP header `Content-Type`
header_params[
"Content-Type"
] = self.api_client.select_header_content_type( # noqa: E501
["multipart/form-data"]
) # noqa: E501
header_params['Content-Type'] = local_var_params.get('_content_type',
self.api_client.select_header_content_type(
['multipart/form-data'],
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = ["Bearer"] # noqa: E501
auth_settings = ['ApiKeyAuth', 'Bearer'] # noqa: E501

response_types_map = {
200: "list[DeploymentFileResults]",
400: "ErrorList",
500: "ErrorList",
}

return self.api_client.call_api(
"/build",
"POST",
'/build', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="list[DeploymentFileResults]", # noqa: E501
response_types_map=response_types_map,
auth_settings=auth_settings,
async_req=params.get("async_req"),
_return_http_data_only=params.get("_return_http_data_only"),
_preload_content=params.get("_preload_content", True),
_request_timeout=params.get("_request_timeout"),
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
_request_auth=local_var_params.get('_request_auth'))
Loading
Loading