gooddata-api-client 1.7.0__py3-none-any.whl → 1.8.1.dev1__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.
Files changed (72) hide show
  1. gooddata_api_client/__init__.py +1 -1
  2. gooddata_api_client/api/actions_api.py +145 -13
  3. gooddata_api_client/api/api_tokens_api.py +0 -165
  4. gooddata_api_client/api/data_filters_api.py +108 -0
  5. gooddata_api_client/api/entities_api.py +109 -166
  6. gooddata_api_client/api/hierarchy_api.py +579 -0
  7. gooddata_api_client/api/jwks_api.py +920 -0
  8. gooddata_api_client/api/layout_api.py +252 -0
  9. gooddata_api_client/api/organization_model_controller_api.py +1 -1
  10. gooddata_api_client/api/permissions_api.py +1031 -99
  11. gooddata_api_client/api/user_identifiers_api.py +330 -0
  12. gooddata_api_client/api/user_model_controller_api.py +0 -165
  13. gooddata_api_client/api/workspace_object_controller_api.py +108 -0
  14. gooddata_api_client/api_client.py +1 -1
  15. gooddata_api_client/apis/__init__.py +3 -0
  16. gooddata_api_client/configuration.py +1 -1
  17. gooddata_api_client/model/afm_valid_objects_query.py +0 -1
  18. gooddata_api_client/model/api_entitlement.py +2 -0
  19. gooddata_api_client/model/assignee_rule.py +275 -0
  20. gooddata_api_client/model/dashboard_permissions.py +10 -2
  21. gooddata_api_client/model/dashboard_permissions_assignment.py +275 -0
  22. gooddata_api_client/model/declarative_analytical_dashboard.py +5 -5
  23. gooddata_api_client/model/declarative_analytical_dashboard_extension.py +5 -5
  24. gooddata_api_client/model/{declarative_analytical_dashboard_permission.py → declarative_analytical_dashboard_permission_assignment.py} +5 -17
  25. gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee.py +334 -0
  26. gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_all_of.py +270 -0
  27. gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_rule.py +334 -0
  28. gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_rule_all_of.py +270 -0
  29. gooddata_api_client/model/declarative_analytical_dashboard_permissions_inner.py +340 -0
  30. gooddata_api_client/model/declarative_organization_permission.py +5 -6
  31. gooddata_api_client/model/declarative_reference.py +14 -10
  32. gooddata_api_client/model/declarative_reference_source.py +301 -0
  33. gooddata_api_client/model/depends_on.py +282 -0
  34. gooddata_api_client/model/elements_request.py +9 -3
  35. gooddata_api_client/model/entitlements_request.py +2 -0
  36. gooddata_api_client/model/grain_identifier.py +2 -0
  37. gooddata_api_client/model/json_api_analytical_dashboard_in.py +8 -6
  38. gooddata_api_client/model/json_api_analytical_dashboard_in_attributes.py +12 -6
  39. gooddata_api_client/model/json_api_analytical_dashboard_out.py +8 -6
  40. gooddata_api_client/model/json_api_analytical_dashboard_out_attributes.py +12 -6
  41. gooddata_api_client/model/json_api_analytical_dashboard_out_with_links.py +4 -4
  42. gooddata_api_client/model/json_api_analytical_dashboard_patch.py +10 -8
  43. gooddata_api_client/model/json_api_analytical_dashboard_patch_attributes.py +286 -0
  44. gooddata_api_client/model/json_api_analytical_dashboard_post_optional_id.py +8 -6
  45. gooddata_api_client/model/json_api_filter_context_in.py +8 -6
  46. gooddata_api_client/model/json_api_filter_context_out.py +8 -6
  47. gooddata_api_client/model/json_api_filter_context_out_with_links.py +4 -4
  48. gooddata_api_client/model/json_api_filter_context_patch.py +10 -8
  49. gooddata_api_client/model/json_api_filter_context_post_optional_id.py +8 -6
  50. gooddata_api_client/model/json_api_organization_out_meta.py +1 -0
  51. gooddata_api_client/model/json_api_visualization_object_in.py +8 -6
  52. gooddata_api_client/model/json_api_visualization_object_out.py +8 -6
  53. gooddata_api_client/model/json_api_visualization_object_out_with_links.py +4 -4
  54. gooddata_api_client/model/json_api_visualization_object_patch.py +10 -8
  55. gooddata_api_client/model/json_api_visualization_object_post_optional_id.py +8 -6
  56. gooddata_api_client/model/json_api_workspace_data_filter_out.py +6 -0
  57. gooddata_api_client/model/json_api_workspace_data_filter_out_with_links.py +6 -0
  58. gooddata_api_client/model/json_api_workspace_data_filter_setting_out.py +6 -0
  59. gooddata_api_client/model/json_api_workspace_data_filter_setting_out_with_links.py +6 -0
  60. gooddata_api_client/model/manage_dashboard_permissions_request_inner.py +340 -0
  61. gooddata_api_client/model/organization_permission_assignment.py +286 -0
  62. gooddata_api_client/model/permissions_for_assignee.py +71 -24
  63. gooddata_api_client/model/permissions_for_assignee_all_of.py +270 -0
  64. gooddata_api_client/model/permissions_for_assignee_rule.py +334 -0
  65. gooddata_api_client/model/rule_permission.py +280 -0
  66. gooddata_api_client/model_utils.py +6 -0
  67. gooddata_api_client/models/__init__.py +16 -1
  68. {gooddata_api_client-1.7.0.dist-info → gooddata_api_client-1.8.1.dev1.dist-info}/LICENSE.txt +20 -8
  69. {gooddata_api_client-1.7.0.dist-info → gooddata_api_client-1.8.1.dev1.dist-info}/METADATA +42 -8
  70. {gooddata_api_client-1.7.0.dist-info → gooddata_api_client-1.8.1.dev1.dist-info}/RECORD +72 -54
  71. {gooddata_api_client-1.7.0.dist-info → gooddata_api_client-1.8.1.dev1.dist-info}/WHEEL +1 -1
  72. {gooddata_api_client-1.7.0.dist-info → gooddata_api_client-1.8.1.dev1.dist-info}/top_level.txt +0 -0
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "1.7.0"
14
+ __version__ = "1.8.1.dev1"
15
15
 
16
16
  # import ApiClient
17
17
  from gooddata_api_client.api_client import ApiClient
@@ -43,8 +43,9 @@ from gooddata_api_client.model.export_response import ExportResponse
43
43
  from gooddata_api_client.model.generate_ldm_request import GenerateLdmRequest
44
44
  from gooddata_api_client.model.hierarchy_object_identification import HierarchyObjectIdentification
45
45
  from gooddata_api_client.model.identifier_duplications import IdentifierDuplications
46
+ from gooddata_api_client.model.manage_dashboard_permissions_request_inner import ManageDashboardPermissionsRequestInner
47
+ from gooddata_api_client.model.organization_permission_assignment import OrganizationPermissionAssignment
46
48
  from gooddata_api_client.model.pdf_export_request import PdfExportRequest
47
- from gooddata_api_client.model.permissions_for_assignee import PermissionsForAssignee
48
49
  from gooddata_api_client.model.platform_usage import PlatformUsage
49
50
  from gooddata_api_client.model.platform_usage_request import PlatformUsageRequest
50
51
  from gooddata_api_client.model.resolve_settings_request import ResolveSettingsRequest
@@ -1259,12 +1260,12 @@ class ActionsApi(object):
1259
1260
  'all': [
1260
1261
  'workspace_id',
1261
1262
  'dashboard_id',
1262
- 'permissions_for_assignee',
1263
+ 'manage_dashboard_permissions_request_inner',
1263
1264
  ],
1264
1265
  'required': [
1265
1266
  'workspace_id',
1266
1267
  'dashboard_id',
1267
- 'permissions_for_assignee',
1268
+ 'manage_dashboard_permissions_request_inner',
1268
1269
  ],
1269
1270
  'nullable': [
1270
1271
  ],
@@ -1283,8 +1284,8 @@ class ActionsApi(object):
1283
1284
  (str,),
1284
1285
  'dashboard_id':
1285
1286
  (str,),
1286
- 'permissions_for_assignee':
1287
- ([PermissionsForAssignee],),
1287
+ 'manage_dashboard_permissions_request_inner':
1288
+ ([ManageDashboardPermissionsRequestInner],),
1288
1289
  },
1289
1290
  'attribute_map': {
1290
1291
  'workspace_id': 'workspaceId',
@@ -1293,7 +1294,55 @@ class ActionsApi(object):
1293
1294
  'location_map': {
1294
1295
  'workspace_id': 'path',
1295
1296
  'dashboard_id': 'path',
1296
- 'permissions_for_assignee': 'body',
1297
+ 'manage_dashboard_permissions_request_inner': 'body',
1298
+ },
1299
+ 'collection_format_map': {
1300
+ }
1301
+ },
1302
+ headers_map={
1303
+ 'accept': [],
1304
+ 'content_type': [
1305
+ 'application/json'
1306
+ ]
1307
+ },
1308
+ api_client=api_client
1309
+ )
1310
+ self.manage_organization_permissions_endpoint = _Endpoint(
1311
+ settings={
1312
+ 'response_type': None,
1313
+ 'auth': [],
1314
+ 'endpoint_path': '/api/v1/actions/organization/managePermissions',
1315
+ 'operation_id': 'manage_organization_permissions',
1316
+ 'http_method': 'POST',
1317
+ 'servers': None,
1318
+ },
1319
+ params_map={
1320
+ 'all': [
1321
+ 'organization_permission_assignment',
1322
+ ],
1323
+ 'required': [
1324
+ 'organization_permission_assignment',
1325
+ ],
1326
+ 'nullable': [
1327
+ ],
1328
+ 'enum': [
1329
+ ],
1330
+ 'validation': [
1331
+ ]
1332
+ },
1333
+ root_map={
1334
+ 'validations': {
1335
+ },
1336
+ 'allowed_values': {
1337
+ },
1338
+ 'openapi_types': {
1339
+ 'organization_permission_assignment':
1340
+ ([OrganizationPermissionAssignment],),
1341
+ },
1342
+ 'attribute_map': {
1343
+ },
1344
+ 'location_map': {
1345
+ 'organization_permission_assignment': 'body',
1297
1346
  },
1298
1347
  'collection_format_map': {
1299
1348
  }
@@ -3681,7 +3730,7 @@ class ActionsApi(object):
3681
3730
  workspace_id,
3682
3731
  **kwargs
3683
3732
  ):
3684
- """Finds API identifier conflicts in given workspace hierarchy. # noqa: E501
3733
+ """Finds identifier conflicts in workspace hierarchy. # noqa: E501
3685
3734
 
3686
3735
  Finds API identifier conflicts in given workspace hierarchy. # noqa: E501
3687
3736
  This method makes a synchronous HTTP request by default. To make an
@@ -3846,7 +3895,7 @@ class ActionsApi(object):
3846
3895
  self,
3847
3896
  workspace_id,
3848
3897
  dashboard_id,
3849
- permissions_for_assignee,
3898
+ manage_dashboard_permissions_request_inner,
3850
3899
  **kwargs
3851
3900
  ):
3852
3901
  """Manage Permissions for a Dashboard # noqa: E501
@@ -3854,13 +3903,13 @@ class ActionsApi(object):
3854
3903
  This method makes a synchronous HTTP request by default. To make an
3855
3904
  asynchronous HTTP request, please pass async_req=True
3856
3905
 
3857
- >>> thread = api.manage_dashboard_permissions(workspace_id, dashboard_id, permissions_for_assignee, async_req=True)
3906
+ >>> thread = api.manage_dashboard_permissions(workspace_id, dashboard_id, manage_dashboard_permissions_request_inner, async_req=True)
3858
3907
  >>> result = thread.get()
3859
3908
 
3860
3909
  Args:
3861
3910
  workspace_id (str):
3862
3911
  dashboard_id (str):
3863
- permissions_for_assignee ([PermissionsForAssignee]):
3912
+ manage_dashboard_permissions_request_inner ([ManageDashboardPermissionsRequestInner]):
3864
3913
 
3865
3914
  Keyword Args:
3866
3915
  _return_http_data_only (bool): response data without head status
@@ -3928,16 +3977,99 @@ class ActionsApi(object):
3928
3977
  workspace_id
3929
3978
  kwargs['dashboard_id'] = \
3930
3979
  dashboard_id
3931
- kwargs['permissions_for_assignee'] = \
3932
- permissions_for_assignee
3980
+ kwargs['manage_dashboard_permissions_request_inner'] = \
3981
+ manage_dashboard_permissions_request_inner
3933
3982
  return self.manage_dashboard_permissions_endpoint.call_with_http_info(**kwargs)
3934
3983
 
3984
+ def manage_organization_permissions(
3985
+ self,
3986
+ organization_permission_assignment,
3987
+ **kwargs
3988
+ ):
3989
+ """Manage Permissions for a Organization # noqa: E501
3990
+
3991
+ Manage Permissions for a Organization # noqa: E501
3992
+ This method makes a synchronous HTTP request by default. To make an
3993
+ asynchronous HTTP request, please pass async_req=True
3994
+
3995
+ >>> thread = api.manage_organization_permissions(organization_permission_assignment, async_req=True)
3996
+ >>> result = thread.get()
3997
+
3998
+ Args:
3999
+ organization_permission_assignment ([OrganizationPermissionAssignment]):
4000
+
4001
+ Keyword Args:
4002
+ _return_http_data_only (bool): response data without head status
4003
+ code and headers. Default is True.
4004
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
4005
+ will be returned without reading/decoding response data.
4006
+ Default is True.
4007
+ _request_timeout (int/float/tuple): timeout setting for this request. If
4008
+ one number provided, it will be total request timeout. It can also
4009
+ be a pair (tuple) of (connection, read) timeouts.
4010
+ Default is None.
4011
+ _check_input_type (bool): specifies if type checking
4012
+ should be done one the data sent to the server.
4013
+ Default is True.
4014
+ _check_return_type (bool): specifies if type checking
4015
+ should be done one the data received from the server.
4016
+ Default is True.
4017
+ _spec_property_naming (bool): True if the variable names in the input data
4018
+ are serialized names, as specified in the OpenAPI document.
4019
+ False if the variable names in the input data
4020
+ are pythonic names, e.g. snake case (default)
4021
+ _content_type (str/None): force body content-type.
4022
+ Default is None and content-type will be predicted by allowed
4023
+ content-types and body.
4024
+ _host_index (int/None): specifies the index of the server
4025
+ that we want to use.
4026
+ Default is read from the configuration.
4027
+ _request_auths (list): set to override the auth_settings for an a single
4028
+ request; this effectively ignores the authentication
4029
+ in the spec for a single request.
4030
+ Default is None
4031
+ async_req (bool): execute request asynchronously
4032
+
4033
+ Returns:
4034
+ None
4035
+ If the method is called asynchronously, returns the request
4036
+ thread.
4037
+ """
4038
+ kwargs['async_req'] = kwargs.get(
4039
+ 'async_req', False
4040
+ )
4041
+ kwargs['_return_http_data_only'] = kwargs.get(
4042
+ '_return_http_data_only', True
4043
+ )
4044
+ kwargs['_preload_content'] = kwargs.get(
4045
+ '_preload_content', True
4046
+ )
4047
+ kwargs['_request_timeout'] = kwargs.get(
4048
+ '_request_timeout', None
4049
+ )
4050
+ kwargs['_check_input_type'] = kwargs.get(
4051
+ '_check_input_type', True
4052
+ )
4053
+ kwargs['_check_return_type'] = kwargs.get(
4054
+ '_check_return_type', True
4055
+ )
4056
+ kwargs['_spec_property_naming'] = kwargs.get(
4057
+ '_spec_property_naming', False
4058
+ )
4059
+ kwargs['_content_type'] = kwargs.get(
4060
+ '_content_type')
4061
+ kwargs['_host_index'] = kwargs.get('_host_index')
4062
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4063
+ kwargs['organization_permission_assignment'] = \
4064
+ organization_permission_assignment
4065
+ return self.manage_organization_permissions_endpoint.call_with_http_info(**kwargs)
4066
+
3935
4067
  def overridden_child_entities(
3936
4068
  self,
3937
4069
  workspace_id,
3938
4070
  **kwargs
3939
4071
  ):
3940
- """Finds API identifier overrides in given workspace hierarchy. # noqa: E501
4072
+ """Finds identifier overrides in workspace hierarchy. # noqa: E501
3941
4073
 
3942
4074
  Finds API identifier overrides in given workspace hierarchy. # noqa: E501
3943
4075
  This method makes a synchronous HTTP request by default. To make an
@@ -296,80 +296,6 @@ class APITokensApi(object):
296
296
  },
297
297
  api_client=api_client
298
298
  )
299
- self.update_entity_api_tokens_endpoint = _Endpoint(
300
- settings={
301
- 'response_type': (JsonApiApiTokenOutDocument,),
302
- 'auth': [],
303
- 'endpoint_path': '/api/v1/entities/users/{userId}/apiTokens/{id}',
304
- 'operation_id': 'update_entity_api_tokens',
305
- 'http_method': 'PUT',
306
- 'servers': None,
307
- },
308
- params_map={
309
- 'all': [
310
- 'user_id',
311
- 'id',
312
- 'json_api_api_token_in_document',
313
- 'filter',
314
- ],
315
- 'required': [
316
- 'user_id',
317
- 'id',
318
- 'json_api_api_token_in_document',
319
- ],
320
- 'nullable': [
321
- ],
322
- 'enum': [
323
- ],
324
- 'validation': [
325
- 'id',
326
- ]
327
- },
328
- root_map={
329
- 'validations': {
330
- ('id',): {
331
-
332
- 'regex': {
333
- 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501
334
- },
335
- },
336
- },
337
- 'allowed_values': {
338
- },
339
- 'openapi_types': {
340
- 'user_id':
341
- (str,),
342
- 'id':
343
- (str,),
344
- 'json_api_api_token_in_document':
345
- (JsonApiApiTokenInDocument,),
346
- 'filter':
347
- (str,),
348
- },
349
- 'attribute_map': {
350
- 'user_id': 'userId',
351
- 'id': 'id',
352
- 'filter': 'filter',
353
- },
354
- 'location_map': {
355
- 'user_id': 'path',
356
- 'id': 'path',
357
- 'json_api_api_token_in_document': 'body',
358
- 'filter': 'query',
359
- },
360
- 'collection_format_map': {
361
- }
362
- },
363
- headers_map={
364
- 'accept': [
365
- 'application/vnd.gooddata.api+json'
366
- ],
367
- 'content_type': [
368
- 'application/vnd.gooddata.api+json'
369
- ]
370
- },
371
- api_client=api_client
372
- )
373
299
 
374
300
  def create_entity_api_tokens(
375
301
  self,
@@ -717,94 +643,3 @@ class APITokensApi(object):
717
643
  id
718
644
  return self.get_entity_api_tokens_endpoint.call_with_http_info(**kwargs)
719
645
 
720
- def update_entity_api_tokens(
721
- self,
722
- user_id,
723
- id,
724
- json_api_api_token_in_document,
725
- **kwargs
726
- ):
727
- """Put new API token for the user # noqa: E501
728
-
729
- This method makes a synchronous HTTP request by default. To make an
730
- asynchronous HTTP request, please pass async_req=True
731
-
732
- >>> thread = api.update_entity_api_tokens(user_id, id, json_api_api_token_in_document, async_req=True)
733
- >>> result = thread.get()
734
-
735
- Args:
736
- user_id (str):
737
- id (str):
738
- json_api_api_token_in_document (JsonApiApiTokenInDocument):
739
-
740
- Keyword Args:
741
- filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional]
742
- _return_http_data_only (bool): response data without head status
743
- code and headers. Default is True.
744
- _preload_content (bool): if False, the urllib3.HTTPResponse object
745
- will be returned without reading/decoding response data.
746
- Default is True.
747
- _request_timeout (int/float/tuple): timeout setting for this request. If
748
- one number provided, it will be total request timeout. It can also
749
- be a pair (tuple) of (connection, read) timeouts.
750
- Default is None.
751
- _check_input_type (bool): specifies if type checking
752
- should be done one the data sent to the server.
753
- Default is True.
754
- _check_return_type (bool): specifies if type checking
755
- should be done one the data received from the server.
756
- Default is True.
757
- _spec_property_naming (bool): True if the variable names in the input data
758
- are serialized names, as specified in the OpenAPI document.
759
- False if the variable names in the input data
760
- are pythonic names, e.g. snake case (default)
761
- _content_type (str/None): force body content-type.
762
- Default is None and content-type will be predicted by allowed
763
- content-types and body.
764
- _host_index (int/None): specifies the index of the server
765
- that we want to use.
766
- Default is read from the configuration.
767
- _request_auths (list): set to override the auth_settings for an a single
768
- request; this effectively ignores the authentication
769
- in the spec for a single request.
770
- Default is None
771
- async_req (bool): execute request asynchronously
772
-
773
- Returns:
774
- JsonApiApiTokenOutDocument
775
- If the method is called asynchronously, returns the request
776
- thread.
777
- """
778
- kwargs['async_req'] = kwargs.get(
779
- 'async_req', False
780
- )
781
- kwargs['_return_http_data_only'] = kwargs.get(
782
- '_return_http_data_only', True
783
- )
784
- kwargs['_preload_content'] = kwargs.get(
785
- '_preload_content', True
786
- )
787
- kwargs['_request_timeout'] = kwargs.get(
788
- '_request_timeout', None
789
- )
790
- kwargs['_check_input_type'] = kwargs.get(
791
- '_check_input_type', True
792
- )
793
- kwargs['_check_return_type'] = kwargs.get(
794
- '_check_return_type', True
795
- )
796
- kwargs['_spec_property_naming'] = kwargs.get(
797
- '_spec_property_naming', False
798
- )
799
- kwargs['_content_type'] = kwargs.get(
800
- '_content_type')
801
- kwargs['_host_index'] = kwargs.get('_host_index')
802
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
803
- kwargs['user_id'] = \
804
- user_id
805
- kwargs['id'] = \
806
- id
807
- kwargs['json_api_api_token_in_document'] = \
808
- json_api_api_token_in_document
809
- return self.update_entity_api_tokens_endpoint.call_with_http_info(**kwargs)
810
-