agilicus 1.246.1__py3-none-any.whl → 1.247.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. agilicus/.openapi-generator/FILES +19 -0
  2. agilicus/agilicus_api/__init__.py +6 -0
  3. agilicus/agilicus_api/api/policy_templates_api.py +684 -0
  4. agilicus/agilicus_api/api/policy_templates_api_mock.py +41 -0
  5. agilicus/agilicus_api/api_client.py +1 -1
  6. agilicus/agilicus_api/apis/__init__.py +1 -0
  7. agilicus/agilicus_api/configuration.py +1 -1
  8. agilicus/agilicus_api/docs/ListPolicyTemplateInstancesResponse.md +14 -0
  9. agilicus/agilicus_api/docs/MFAPolicyTemplate.md +15 -0
  10. agilicus/agilicus_api/docs/PolicyTemplate.md +14 -0
  11. agilicus/agilicus_api/docs/PolicyTemplateInstance.md +14 -0
  12. agilicus/agilicus_api/docs/PolicyTemplateInstanceSpec.md +16 -0
  13. agilicus/agilicus_api/docs/PolicyTemplatesApi.md +463 -0
  14. agilicus/agilicus_api/docs/ResourceURL.md +1 -1
  15. agilicus/agilicus_api/model/list_policy_template_instances_response.py +295 -0
  16. agilicus/agilicus_api/model/mfa_policy_template.py +309 -0
  17. agilicus/agilicus_api/model/policy_template.py +358 -0
  18. agilicus/agilicus_api/model/policy_template_instance.py +295 -0
  19. agilicus/agilicus_api/model/policy_template_instance_spec.py +334 -0
  20. agilicus/agilicus_api/model/resource_url.py +2 -2
  21. agilicus/agilicus_api/models/__init__.py +5 -0
  22. agilicus/agilicus_api/test/test_list_policy_template_instances_response.py +38 -0
  23. agilicus/agilicus_api/test/test_mfa_policy_template.py +38 -0
  24. agilicus/agilicus_api/test/test_policy_template.py +40 -0
  25. agilicus/agilicus_api/test/test_policy_template_instance.py +40 -0
  26. agilicus/agilicus_api/test/test_policy_template_instance_spec.py +38 -0
  27. agilicus/agilicus_api/test/test_policy_templates_api.py +64 -0
  28. agilicus/agilicus_api_README.md +11 -1
  29. agilicus/context.py +3 -0
  30. agilicus/policy/policies.py +32 -47
  31. {agilicus-1.246.1.dist-info → agilicus-1.247.0.dist-info}/METADATA +1 -1
  32. {agilicus-1.246.1.dist-info → agilicus-1.247.0.dist-info}/RECORD +35 -16
  33. {agilicus-1.246.1.dist-info → agilicus-1.247.0.dist-info}/LICENSE.txt +0 -0
  34. {agilicus-1.246.1.dist-info → agilicus-1.247.0.dist-info}/WHEEL +0 -0
  35. {agilicus-1.246.1.dist-info → agilicus-1.247.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,334 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from agilicus_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ )
29
+ from ..model_utils import OpenApiModel
30
+ from agilicus_api.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from agilicus_api.model.policy_template import PolicyTemplate
35
+ globals()['PolicyTemplate'] = PolicyTemplate
36
+
37
+
38
+ class PolicyTemplateInstanceSpec(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ ('name',): {
67
+ 'max_length': 32,
68
+ 'regex': {
69
+ 'pattern': r'^[a-zA-Z0-9-_.]+$', # noqa: E501
70
+ },
71
+ },
72
+ ('description',): {
73
+ 'max_length': 128,
74
+ 'min_length': 0,
75
+ 'regex': {
76
+ 'pattern': r'.*', # noqa: E501
77
+ },
78
+ },
79
+ }
80
+
81
+ @property
82
+ def org_id(self):
83
+ return self.get("org_id")
84
+
85
+ @org_id.setter
86
+ def org_id(self, new_value):
87
+ self.org_id = new_value
88
+
89
+ @property
90
+ def template(self):
91
+ return self.get("template")
92
+
93
+ @template.setter
94
+ def template(self, new_value):
95
+ self.template = new_value
96
+
97
+ @property
98
+ def description(self):
99
+ return self.get("description")
100
+
101
+ @description.setter
102
+ def description(self, new_value):
103
+ self.description = new_value
104
+
105
+ @property
106
+ def name(self):
107
+ return self.get("name")
108
+
109
+ @name.setter
110
+ def name(self, new_value):
111
+ self.name = new_value
112
+
113
+ @cached_property
114
+ def additional_properties_type():
115
+ """
116
+ This must be a method because a model may have properties that are
117
+ of type self, this must run after the class is loaded
118
+ """
119
+ lazy_import()
120
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
121
+
122
+ _nullable = False
123
+
124
+ @cached_property
125
+ def openapi_types():
126
+ """
127
+ This must be a method because a model may have properties that are
128
+ of type self, this must run after the class is loaded
129
+
130
+ Returns
131
+ openapi_types (dict): The key is attribute name
132
+ and the value is attribute type.
133
+ """
134
+ lazy_import()
135
+ return {
136
+ 'org_id': (str,), # noqa: E501
137
+ 'template': (PolicyTemplate,), # noqa: E501
138
+ 'name': (str,), # noqa: E501
139
+ 'description': (str,), # noqa: E501
140
+ }
141
+
142
+ @cached_property
143
+ def discriminator():
144
+ return None
145
+
146
+
147
+
148
+ attribute_map = {
149
+ 'org_id': 'org_id', # noqa: E501
150
+ 'template': 'template', # noqa: E501
151
+ 'name': 'name', # noqa: E501
152
+ 'description': 'description', # noqa: E501
153
+ }
154
+
155
+ read_only_vars = {
156
+ }
157
+
158
+ _composed_schemas = {}
159
+
160
+ @classmethod
161
+ @convert_js_args_to_python_args
162
+ def _from_openapi_data(cls, org_id, template, name, *args, **kwargs): # noqa: E501
163
+ """PolicyTemplateInstanceSpec - a model defined in OpenAPI
164
+
165
+ Args:
166
+ org_id (str): Unique identifier
167
+ template (PolicyTemplate):
168
+ name (str): A short name used to unqiuely identify this instance. May be descriptive, but primarily used for idempotency. Cannot be changed after creation.
169
+
170
+ Keyword Args:
171
+ _check_type (bool): if True, values for parameters in openapi_types
172
+ will be type checked and a TypeError will be
173
+ raised if the wrong type is input.
174
+ Defaults to True
175
+ _path_to_item (tuple/list): This is a list of keys or values to
176
+ drill down to the model in received_data
177
+ when deserializing a response
178
+ _spec_property_naming (bool): True if the variable names in the input data
179
+ are serialized names, as specified in the OpenAPI document.
180
+ False if the variable names in the input data
181
+ are pythonic names, e.g. snake case (default)
182
+ _configuration (Configuration): the instance to use when
183
+ deserializing a file_type parameter.
184
+ If passed, type conversion is attempted
185
+ If omitted no type conversion is done.
186
+ _visited_composed_classes (tuple): This stores a tuple of
187
+ classes that we have traveled through so that
188
+ if we see that class again we will not use its
189
+ discriminator again.
190
+ When traveling through a discriminator, the
191
+ composed schema that is
192
+ is traveled through is added to this set.
193
+ For example if Animal has a discriminator
194
+ petType and we pass in "Dog", and the class Dog
195
+ allOf includes Animal, we move through Animal
196
+ once using the discriminator, and pick Dog.
197
+ Then in Dog, we will make an instance of the
198
+ Animal class but this time we won't travel
199
+ through its discriminator because we passed in
200
+ _visited_composed_classes = (Animal,)
201
+ description (str): A brief description of the template. [optional] # noqa: E501
202
+ """
203
+
204
+ _check_type = kwargs.pop('_check_type', True)
205
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
206
+ _path_to_item = kwargs.pop('_path_to_item', ())
207
+ _configuration = kwargs.pop('_configuration', None)
208
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
209
+
210
+ self = super(OpenApiModel, cls).__new__(cls)
211
+
212
+ if args:
213
+ raise ApiTypeError(
214
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
215
+ args,
216
+ self.__class__.__name__,
217
+ ),
218
+ path_to_item=_path_to_item,
219
+ valid_classes=(self.__class__,),
220
+ )
221
+
222
+ self._data_store = {}
223
+ self._check_type = _check_type
224
+ self._spec_property_naming = _spec_property_naming
225
+ self._path_to_item = _path_to_item
226
+ self._configuration = _configuration
227
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
228
+
229
+ self.org_id = org_id
230
+ self.template = template
231
+ self.name = name
232
+ for var_name, var_value in kwargs.items():
233
+ if var_name not in self.attribute_map and \
234
+ self._configuration is not None and \
235
+ self._configuration.discard_unknown_keys and \
236
+ self.additional_properties_type is None:
237
+ # discard variable.
238
+ continue
239
+ setattr(self, var_name, var_value)
240
+ return self
241
+
242
+ def __python_set(val):
243
+ return set(val)
244
+
245
+ required_properties = __python_set([
246
+ '_data_store',
247
+ '_check_type',
248
+ '_spec_property_naming',
249
+ '_path_to_item',
250
+ '_configuration',
251
+ '_visited_composed_classes',
252
+ ])
253
+
254
+ @convert_js_args_to_python_args
255
+ def __init__(self, org_id, template, name, *args, **kwargs): # noqa: E501
256
+ """PolicyTemplateInstanceSpec - a model defined in OpenAPI
257
+
258
+ Args:
259
+ org_id (str): Unique identifier
260
+ template (PolicyTemplate):
261
+ name (str): A short name used to unqiuely identify this instance. May be descriptive, but primarily used for idempotency. Cannot be changed after creation.
262
+
263
+ Keyword Args:
264
+ _check_type (bool): if True, values for parameters in openapi_types
265
+ will be type checked and a TypeError will be
266
+ raised if the wrong type is input.
267
+ Defaults to True
268
+ _path_to_item (tuple/list): This is a list of keys or values to
269
+ drill down to the model in received_data
270
+ when deserializing a response
271
+ _spec_property_naming (bool): True if the variable names in the input data
272
+ are serialized names, as specified in the OpenAPI document.
273
+ False if the variable names in the input data
274
+ are pythonic names, e.g. snake case (default)
275
+ _configuration (Configuration): the instance to use when
276
+ deserializing a file_type parameter.
277
+ If passed, type conversion is attempted
278
+ If omitted no type conversion is done.
279
+ _visited_composed_classes (tuple): This stores a tuple of
280
+ classes that we have traveled through so that
281
+ if we see that class again we will not use its
282
+ discriminator again.
283
+ When traveling through a discriminator, the
284
+ composed schema that is
285
+ is traveled through is added to this set.
286
+ For example if Animal has a discriminator
287
+ petType and we pass in "Dog", and the class Dog
288
+ allOf includes Animal, we move through Animal
289
+ once using the discriminator, and pick Dog.
290
+ Then in Dog, we will make an instance of the
291
+ Animal class but this time we won't travel
292
+ through its discriminator because we passed in
293
+ _visited_composed_classes = (Animal,)
294
+ description (str): A brief description of the template. [optional] # noqa: E501
295
+ """
296
+
297
+ _check_type = kwargs.pop('_check_type', True)
298
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
299
+ _path_to_item = kwargs.pop('_path_to_item', ())
300
+ _configuration = kwargs.pop('_configuration', None)
301
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
302
+
303
+ if args:
304
+ raise ApiTypeError(
305
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
306
+ args,
307
+ self.__class__.__name__,
308
+ ),
309
+ path_to_item=_path_to_item,
310
+ valid_classes=(self.__class__,),
311
+ )
312
+
313
+ self._data_store = {}
314
+ self._check_type = _check_type
315
+ self._spec_property_naming = _spec_property_naming
316
+ self._path_to_item = _path_to_item
317
+ self._configuration = _configuration
318
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
319
+
320
+ self.org_id = org_id
321
+ self.template = template
322
+ self.name = name
323
+ for var_name, var_value in kwargs.items():
324
+ if var_name not in self.attribute_map and \
325
+ self._configuration is not None and \
326
+ self._configuration.discard_unknown_keys and \
327
+ self.additional_properties_type is None:
328
+ # discard variable.
329
+ continue
330
+ setattr(self, var_name, var_value)
331
+ if var_name in self.read_only_vars:
332
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
333
+ f"class with read only attributes.")
334
+
@@ -144,7 +144,7 @@ class ResourceURL(ModelNormal):
144
144
  Animal class but this time we won't travel
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
- url (str): resource URL . [optional] # noqa: E501
147
+ url (str): resource URL . [optional] # noqa: E501
148
148
  """
149
149
 
150
150
  _check_type = kwargs.pop('_check_type', True)
@@ -229,7 +229,7 @@ class ResourceURL(ModelNormal):
229
229
  Animal class but this time we won't travel
230
230
  through its discriminator because we passed in
231
231
  _visited_composed_classes = (Animal,)
232
- url (str): resource URL . [optional] # noqa: E501
232
+ url (str): resource URL . [optional] # noqa: E501
233
233
  """
234
234
 
235
235
  _check_type = kwargs.pop('_check_type', True)
@@ -394,6 +394,7 @@ from agilicus_api.model.list_orgs_response import ListOrgsResponse
394
394
  from agilicus_api.model.list_point_of_presences_response import ListPointOfPresencesResponse
395
395
  from agilicus_api.model.list_policies_response import ListPoliciesResponse
396
396
  from agilicus_api.model.list_policy_rules_response import ListPolicyRulesResponse
397
+ from agilicus_api.model.list_policy_template_instances_response import ListPolicyTemplateInstancesResponse
397
398
  from agilicus_api.model.list_products_response import ListProductsResponse
398
399
  from agilicus_api.model.list_public_file_org_links_response import ListPublicFileOrgLinksResponse
399
400
  from agilicus_api.model.list_resource_permissions_response import ListResourcePermissionsResponse
@@ -453,6 +454,7 @@ from agilicus_api.model.mfa_enrollment_answer_result import MFAEnrollmentAnswerR
453
454
  from agilicus_api.model.mfa_enrollment_question import MFAEnrollmentQuestion
454
455
  from agilicus_api.model.mfa_enrollment_question_input import MFAEnrollmentQuestionInput
455
456
  from agilicus_api.model.mfa_enrollment_question_login_info import MFAEnrollmentQuestionLoginInfo
457
+ from agilicus_api.model.mfa_policy_template import MFAPolicyTemplate
456
458
  from agilicus_api.model.managed_upstream_identity_provider import ManagedUpstreamIdentityProvider
457
459
  from agilicus_api.model.many_org_token_introspect_response import ManyOrgTokenIntrospectResponse
458
460
  from agilicus_api.model.map_attributes_answer import MapAttributesAnswer
@@ -549,6 +551,9 @@ from agilicus_api.model.policy_rule import PolicyRule
549
551
  from agilicus_api.model.policy_rule_spec import PolicyRuleSpec
550
552
  from agilicus_api.model.policy_spec import PolicySpec
551
553
  from agilicus_api.model.policy_status import PolicyStatus
554
+ from agilicus_api.model.policy_template import PolicyTemplate
555
+ from agilicus_api.model.policy_template_instance import PolicyTemplateInstance
556
+ from agilicus_api.model.policy_template_instance_spec import PolicyTemplateInstanceSpec
552
557
  from agilicus_api.model.previous_page_email import PreviousPageEmail
553
558
  from agilicus_api.model.product import Product
554
559
  from agilicus_api.model.product_spec import ProductSpec
@@ -0,0 +1,38 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import sys
13
+ import unittest
14
+
15
+ import agilicus_api
16
+ from agilicus_api.model.policy_template_instance import PolicyTemplateInstance
17
+ globals()['PolicyTemplateInstance'] = PolicyTemplateInstance
18
+ from agilicus_api.model.list_policy_template_instances_response import ListPolicyTemplateInstancesResponse
19
+
20
+
21
+ class TestListPolicyTemplateInstancesResponse(unittest.TestCase):
22
+ """ListPolicyTemplateInstancesResponse unit test stubs"""
23
+
24
+ def setUp(self):
25
+ pass
26
+
27
+ def tearDown(self):
28
+ pass
29
+
30
+ def testListPolicyTemplateInstancesResponse(self):
31
+ """Test ListPolicyTemplateInstancesResponse"""
32
+ # FIXME: construct object with mandatory attributes with example values
33
+ # model = ListPolicyTemplateInstancesResponse() # noqa: E501
34
+ pass
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
@@ -0,0 +1,38 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import sys
13
+ import unittest
14
+
15
+ import agilicus_api
16
+ from agilicus_api.model.label_name import LabelName
17
+ globals()['LabelName'] = LabelName
18
+ from agilicus_api.model.mfa_policy_template import MFAPolicyTemplate
19
+
20
+
21
+ class TestMFAPolicyTemplate(unittest.TestCase):
22
+ """MFAPolicyTemplate unit test stubs"""
23
+
24
+ def setUp(self):
25
+ pass
26
+
27
+ def tearDown(self):
28
+ pass
29
+
30
+ def testMFAPolicyTemplate(self):
31
+ """Test MFAPolicyTemplate"""
32
+ # FIXME: construct object with mandatory attributes with example values
33
+ # model = MFAPolicyTemplate() # noqa: E501
34
+ pass
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
@@ -0,0 +1,40 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import sys
13
+ import unittest
14
+
15
+ import agilicus_api
16
+ from agilicus_api.model.label_name import LabelName
17
+ from agilicus_api.model.mfa_policy_template import MFAPolicyTemplate
18
+ globals()['LabelName'] = LabelName
19
+ globals()['MFAPolicyTemplate'] = MFAPolicyTemplate
20
+ from agilicus_api.model.policy_template import PolicyTemplate
21
+
22
+
23
+ class TestPolicyTemplate(unittest.TestCase):
24
+ """PolicyTemplate unit test stubs"""
25
+
26
+ def setUp(self):
27
+ pass
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def testPolicyTemplate(self):
33
+ """Test PolicyTemplate"""
34
+ # FIXME: construct object with mandatory attributes with example values
35
+ # model = PolicyTemplate() # noqa: E501
36
+ pass
37
+
38
+
39
+ if __name__ == '__main__':
40
+ unittest.main()
@@ -0,0 +1,40 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import sys
13
+ import unittest
14
+
15
+ import agilicus_api
16
+ from agilicus_api.model.metadata_with_id import MetadataWithId
17
+ from agilicus_api.model.policy_template_instance_spec import PolicyTemplateInstanceSpec
18
+ globals()['MetadataWithId'] = MetadataWithId
19
+ globals()['PolicyTemplateInstanceSpec'] = PolicyTemplateInstanceSpec
20
+ from agilicus_api.model.policy_template_instance import PolicyTemplateInstance
21
+
22
+
23
+ class TestPolicyTemplateInstance(unittest.TestCase):
24
+ """PolicyTemplateInstance unit test stubs"""
25
+
26
+ def setUp(self):
27
+ pass
28
+
29
+ def tearDown(self):
30
+ pass
31
+
32
+ def testPolicyTemplateInstance(self):
33
+ """Test PolicyTemplateInstance"""
34
+ # FIXME: construct object with mandatory attributes with example values
35
+ # model = PolicyTemplateInstance() # noqa: E501
36
+ pass
37
+
38
+
39
+ if __name__ == '__main__':
40
+ unittest.main()
@@ -0,0 +1,38 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import sys
13
+ import unittest
14
+
15
+ import agilicus_api
16
+ from agilicus_api.model.policy_template import PolicyTemplate
17
+ globals()['PolicyTemplate'] = PolicyTemplate
18
+ from agilicus_api.model.policy_template_instance_spec import PolicyTemplateInstanceSpec
19
+
20
+
21
+ class TestPolicyTemplateInstanceSpec(unittest.TestCase):
22
+ """PolicyTemplateInstanceSpec unit test stubs"""
23
+
24
+ def setUp(self):
25
+ pass
26
+
27
+ def tearDown(self):
28
+ pass
29
+
30
+ def testPolicyTemplateInstanceSpec(self):
31
+ """Test PolicyTemplateInstanceSpec"""
32
+ # FIXME: construct object with mandatory attributes with example values
33
+ # model = PolicyTemplateInstanceSpec() # noqa: E501
34
+ pass
35
+
36
+
37
+ if __name__ == '__main__':
38
+ unittest.main()
@@ -0,0 +1,64 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.03.26
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import unittest
13
+
14
+ import agilicus_api
15
+ from agilicus_api.api.policy_templates_api import PolicyTemplatesApi # noqa: E501
16
+
17
+
18
+ class TestPolicyTemplatesApi(unittest.TestCase):
19
+ """PolicyTemplatesApi unit test stubs"""
20
+
21
+ def setUp(self):
22
+ self.api = PolicyTemplatesApi() # noqa: E501
23
+
24
+ def tearDown(self):
25
+ pass
26
+
27
+ def test_create_policy_template_instance(self):
28
+ """Test case for create_policy_template_instance
29
+
30
+ Add a PolicyTemplateInstance # noqa: E501
31
+ """
32
+ pass
33
+
34
+ def test_delete_policy_template_instance(self):
35
+ """Test case for delete_policy_template_instance
36
+
37
+ Delete a PolicyTemplateInstance # noqa: E501
38
+ """
39
+ pass
40
+
41
+ def test_get_policy_template_instance(self):
42
+ """Test case for get_policy_template_instance
43
+
44
+ Get a PolicyTemplateInstance # noqa: E501
45
+ """
46
+ pass
47
+
48
+ def test_list_policy_template_instances(self):
49
+ """Test case for list_policy_template_instances
50
+
51
+ List all standalone policy_templates # noqa: E501
52
+ """
53
+ pass
54
+
55
+ def test_replace_policy_template_instance(self):
56
+ """Test case for replace_policy_template_instance
57
+
58
+ update a PolicyTemplateInstance # noqa: E501
59
+ """
60
+ pass
61
+
62
+
63
+ if __name__ == '__main__':
64
+ unittest.main()