illumio-pylo 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,16 +62,16 @@ all_object_types: Dict[ObjectTypes, ObjectTypes] = {
62
62
  class APIConnector:
63
63
  """docstring for APIConnector."""
64
64
 
65
- def __init__(self, fqdn: str, port, apiuser: str, apikey: str, skip_ssl_cert_check=False, org_id=1, name='unnamed'):
65
+ def __init__(self, fqdn: str, port, api_user: str, api_key: str, skip_ssl_cert_check=False, org_id=1, name='unnamed'):
66
66
  self.name = name
67
67
  self.fqdn: str = fqdn
68
68
  if type(port) is int:
69
69
  port = str(port)
70
70
  self.port: int = port
71
- self._api_key: str = apikey
71
+ self._api_key: str = api_key
72
72
  self._decrypted_api_key: str = None
73
- self.api_user: str = apiuser
74
- self.orgID: int = org_id
73
+ self.api_user: str = api_user
74
+ self.org_id: int = org_id
75
75
  self.skipSSLCertCheck: bool = skip_ssl_cert_check
76
76
  self.version: Optional['pylo.SoftwareVersion'] = None
77
77
  self.version_string: str = "Not Defined"
@@ -148,7 +148,7 @@ class APIConnector:
148
148
  def _make_api_url(self, path: str = '', include_org_id=False) -> str:
149
149
  url = self._make_base_url('/api/v2')
150
150
  if include_org_id:
151
- url += '/orgs/' + str(self.orgID)
151
+ url += '/orgs/' + str(self.org_id)
152
152
  url += path
153
153
 
154
154
  return url
@@ -71,7 +71,7 @@ class Organization:
71
71
  credentials = get_credentials_from_file(fqdn_or_profile_name, credential_file)
72
72
 
73
73
  connector = pylo.APIConnector(fqdn=credentials.fqdn, port=credentials.port,
74
- apiuser=credentials.api_user, apikey=credentials.api_key,
74
+ api_user=credentials.api_user, api_key=credentials.api_key,
75
75
  org_id=credentials.org_id,
76
76
  skip_ssl_cert_check=not credentials.verify_ssl, name=fqdn_or_profile_name)
77
77
 
illumio_pylo/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.3"
1
+ __version__ = "0.3.4"
2
2
 
3
3
  import os
4
4
  import sys
@@ -43,7 +43,7 @@ def get_organization(fqdn: str, port: int, api_user: str, api_key: str,
43
43
  """
44
44
  Load an organization from the API with parameters provided as arguments.
45
45
  """
46
- api = APIConnector(fqdn=fqdn, port=port, apiuser=api_user, apikey=api_key, org_id=organization_id,
46
+ api = APIConnector(fqdn=fqdn, port=port, api_user=api_user, api_key=api_key, org_id=organization_id,
47
47
  skip_ssl_cert_check=not verify_ssl)
48
48
  org = Organization(1)
49
49
  org.load_from_api(api, include_deleted_workloads=include_deleted_workloads,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: illumio_pylo
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: A set of tools and library for working with Illumio PCE
5
5
  Home-page: https://github.com/cpainchaud/pylo
6
6
  Author: Christophe Painchaud
@@ -7,7 +7,7 @@ illumio_pylo/LabelCommon.py,sha256=2HzljD2xJSBjf4Ywxk8JpBQQfbiZILCMV_Mj_EATIGk,1
7
7
  illumio_pylo/LabelGroup.py,sha256=bVXvONHwR44GkF-9S19Fs2cnc4g8IW42VjyKi7QXmvQ,2624
8
8
  illumio_pylo/LabelStore.py,sha256=_feA5HdrfnOgcWStBToesu1S2ymHQKEKEG2Ygcadh9g,19809
9
9
  illumio_pylo/LabeledObject.py,sha256=zXIFcHtuvgxhu93htxiWtHoJ_mMWfSSdOBRNlEiXej0,1991
10
- illumio_pylo/Organization.py,sha256=MeESA6HuU0HzzkIKbj1NW_wzkarq30ptsCiffD1lm2M,12379
10
+ illumio_pylo/Organization.py,sha256=_C6mLVdau7oVXrkQYLun-o53wJu5ajyzBojRjZmHeNo,12381
11
11
  illumio_pylo/Query.py,sha256=lgLjst41ma3HMVkngvTjL7zSLjh80RoXYL5vS3PWO7Q,13330
12
12
  illumio_pylo/ReferenceTracker.py,sha256=HyY0NwZwOdAzSXJrs6i6dhB_kgn1tidZL5LFLLkPuSM,1070
13
13
  illumio_pylo/Rule.py,sha256=jPU0hj8BDv2t-keL3NCK6NEd-kYSRkjwtzdo1xWiC5E,26352
@@ -21,9 +21,9 @@ illumio_pylo/VirtualServiceStore.py,sha256=b6bcMixq0Vfv7WjQTQnFHGCv_Mld7sOfvGi4N
21
21
  illumio_pylo/Workload.py,sha256=OIrP2TVFpCjQdjMYPdHkZHcKRszZ2hPnj4uRhI6d8EI,19677
22
22
  illumio_pylo/WorkloadStore.py,sha256=08FKIk9fubsaHy_-m2a0Io5sO_V9jmTa40-L3vyemRc,10947
23
23
  illumio_pylo/WorkloadStoreSubClasses.py,sha256=tK7s-7s5wRf9SHv3T00EOzgv4gX8gPIM77KBubCzBuo,6092
24
- illumio_pylo/__init__.py,sha256=xFZtrDXJzFs2mvE4B3udeNXJnu2o953tYyqsHCGSX1g,4192
24
+ illumio_pylo/__init__.py,sha256=JoTsLNNOxwNCpwpjcVgvH_th_rbooSZAxRdJfqflZlc,4194
25
25
  illumio_pylo/tmp.py,sha256=7PIn11aYfoxed7tjG_I1iZmiacn4TxZPihs7qD7f4DI,3123
26
- illumio_pylo/API/APIConnector.py,sha256=ksStxXka8a5gATM6GKb7foMLZZtBRAleuWJI96ioFoI,60494
26
+ illumio_pylo/API/APIConnector.py,sha256=Iw8uMEAQKJhKa29lvAk8jp8bUMwvvujiKa3gy5xsFlM,60500
27
27
  illumio_pylo/API/AuditLog.py,sha256=p0mfjrE5S8qoJgA5LIP_XGFBP3iL86Nl6BQEmhMVrPA,1533
28
28
  illumio_pylo/API/ClusterHealth.py,sha256=GdMpVQrHUW4zLM-409GcPHM8H8b3LAppO37ZcUZyT_Q,5122
29
29
  illumio_pylo/API/CredentialsManager.py,sha256=gGx63cEm4tnf4xLrmP5LAlDuEGlRjfuvOqut3xUl8i8,11030
@@ -65,8 +65,8 @@ illumio_pylo/utilities/resources/iplists-import-example.xlsx,sha256=VW-7CRr8NA2V
65
65
  illumio_pylo/utilities/resources/workload-exporter-filter-example.csv,sha256=cn5IA8AGEPjvS-EsPXA_GJ-LFsdF9t_44rSzFTCmAzE,36
66
66
  illumio_pylo/utilities/resources/workloads-import-example.csv,sha256=DEOGVikFjxQpMFFI0l0jb3hrxEEeZCpTGkmWkz6GUcY,91
67
67
  illumio_pylo/utilities/resources/workloads-import-example.xlsx,sha256=U8Ac2BZidA6NlvBFAVPHqeY5zmg3rjmIAXp5b3b1P5w,17101
68
- illumio_pylo-0.3.3.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
69
- illumio_pylo-0.3.3.dist-info/METADATA,sha256=cXr1ZrhFl1rQTJgE_0IFxb1okrSPSS0mNeqVS1XmHrs,12224
70
- illumio_pylo-0.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
71
- illumio_pylo-0.3.3.dist-info/top_level.txt,sha256=c5cu_ZMuSuxjq48ih58Kc0Tr8-JdQtV8GrKJicvWNFE,13
72
- illumio_pylo-0.3.3.dist-info/RECORD,,
68
+ illumio_pylo-0.3.4.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
69
+ illumio_pylo-0.3.4.dist-info/METADATA,sha256=74kLC2e4AteYoHGw7Zig8hzclfGSd82yckcJcw-opXM,12224
70
+ illumio_pylo-0.3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
71
+ illumio_pylo-0.3.4.dist-info/top_level.txt,sha256=c5cu_ZMuSuxjq48ih58Kc0Tr8-JdQtV8GrKJicvWNFE,13
72
+ illumio_pylo-0.3.4.dist-info/RECORD,,