msfabricpysdkcore 0.1.8__tar.gz → 0.2.2__tar.gz

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. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/PKG-INFO +258 -13
  2. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/README.md +255 -11
  3. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/adminapi.py +178 -12
  4. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/coreapi.py +1479 -99
  5. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/item.py +45 -6
  6. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/job_instance.py +2 -1
  7. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/otheritems.py +159 -10
  8. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/__init__.py +0 -0
  9. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_admin_apis.py +174 -0
  10. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_connection.py +111 -0
  11. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_datapipelines.py +45 -0
  12. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_deployment_pipeline.py +63 -0
  13. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_domains.py +126 -0
  14. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_environments.py +114 -0
  15. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_evenhouses.py +56 -0
  16. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_evenstreams.py +52 -0
  17. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_external_data_shares.py +51 -0
  18. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_fabric_azure_client.py +80 -0
  19. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_gateways.py +99 -0
  20. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_git.py +66 -0
  21. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_graphqlapi.py +44 -0
  22. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_items.py +97 -0
  23. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_jobs.py +96 -0
  24. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_kql_dashboards.py +63 -0
  25. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_kql_queryset.py +64 -0
  26. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_kqldatabases.py +56 -0
  27. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_lakehouse.py +93 -0
  28. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_managed_private_endpoints.py +61 -0
  29. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_mirroreddatabases.py +80 -0
  30. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_ml_experiments.py +47 -0
  31. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_ml_models.py +47 -0
  32. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_mounted_adf.py +64 -0
  33. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_notebooks.py +57 -0
  34. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_one_lake_data_access_security.py +63 -0
  35. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_other_items.py +45 -0
  36. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_reflex.py +57 -0
  37. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_reports.py +56 -0
  38. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_semantic_model.py +56 -0
  39. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_shortcuts.py +60 -0
  40. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_spark.py +91 -0
  41. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_sparkjobdefinition.py +55 -0
  42. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_sqldatabases.py +45 -0
  43. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_warehouses.py +50 -0
  44. msfabricpysdkcore-0.2.2/msfabricpysdkcore/tests/test_workspaces_capacities.py +159 -0
  45. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/workspace.py +295 -16
  46. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore.egg-info/PKG-INFO +258 -13
  47. msfabricpysdkcore-0.2.2/msfabricpysdkcore.egg-info/SOURCES.txt +69 -0
  48. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/pyproject.toml +1 -1
  49. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/setup.py +1 -1
  50. msfabricpysdkcore-0.1.8/msfabricpysdkcore.egg-info/SOURCES.txt +0 -32
  51. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/LICENSE +0 -0
  52. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/__init__.py +0 -0
  53. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/admin_item.py +0 -0
  54. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/admin_workspace.py +0 -0
  55. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/auth.py +0 -0
  56. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/capacity.py +0 -0
  57. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/client.py +0 -0
  58. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/deployment_pipeline.py +0 -0
  59. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/domain.py +0 -0
  60. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/environment.py +0 -0
  61. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/fabric_azure_capacity.py +0 -0
  62. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/fabric_azure_client.py +0 -0
  63. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/lakehouse.py +0 -0
  64. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/long_running_operation.py +0 -0
  65. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/onelakeshortcut.py +0 -0
  66. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/spark_custom_pool.py +0 -0
  67. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/util/__init__.py +0 -0
  68. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore/util/logger.py +0 -0
  69. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore.egg-info/dependency_links.txt +0 -0
  70. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore.egg-info/requires.txt +0 -0
  71. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/msfabricpysdkcore.egg-info/top_level.txt +0 -0
  72. {msfabricpysdkcore-0.1.8 → msfabricpysdkcore-0.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: msfabricpysdkcore
3
- Version: 0.1.8
3
+ Version: 0.2.2
4
4
  Summary: A Python SDK for Microsoft Fabric
5
5
  Author: Andreas Rederer
6
6
  Project-URL: Homepage, https://github.com/DaSenf1860/ms-fabric-sdk-core
@@ -13,6 +13,7 @@ License-File: LICENSE
13
13
  Requires-Dist: requests>=2.30.0
14
14
  Requires-Dist: azure-identity>=1.15.0
15
15
  Requires-Dist: msal>=1.28.0
16
+ Dynamic: requires-dist
16
17
 
17
18
  # Python SDK for Microsoft Fabric
18
19
 
@@ -43,11 +44,14 @@ See the latest release notes [here](releasenotes/release_notes.md).
43
44
  Currently it supports all Core APIs, Admin APIs, all item specific CRUD APIs and Azure Resource Management APIs for Fabric capacities, i.e.:
44
45
  - Core APIs
45
46
  - [Capacities](#working-with-capacities)
47
+ - [Connections](#connections)
46
48
  - [Deployment Pipelines](#deployment-pipelines)
47
49
  - [External Data Shares](#external-data-shares)
50
+ - [Gateways](#gateways)
48
51
  - [Git](#working-with-git)
49
52
  - [Items](#working-with-items)
50
53
  - [Job Scheduler](#working-with-job-scheduler)
54
+ - [Managed Private Endpoints](#managed-private-endpoints)
51
55
  - [Long Running Operations](#long-running-operations)
52
56
  - [OneLakeDataAccessSecurity](#one-lake-data-access-security)
53
57
  - [OneLakeShortcuts](#working-with-one-lake-shortcuts)
@@ -225,6 +229,86 @@ ws.unassign_from_capacity()
225
229
 
226
230
  # List capacities
227
231
  fc.list_capacities()
232
+ ```
233
+ ### Connections
234
+
235
+ ```python
236
+
237
+ # Add connection role assignment
238
+ principal = {"id" : "755f273c-98f8-408c-a886-691794938bd8",
239
+ "type" : "ServicePrincipal"}
240
+
241
+ add_role_assi = fc.add_connection_role_assignment(connection_id="id", principal=principal, role='User')
242
+
243
+ # Create Connection
244
+ display_name = "ContosoCloudConnection" + datetime_str
245
+
246
+ cr = {"connectivityType": "ShareableCloud",
247
+ "displayName": display_name,
248
+ "connectionDetails": {
249
+ 'type': "SQL",
250
+ 'creationMethod': 'SQL',
251
+ "parameters": [
252
+ {
253
+ "dataType": "Text",
254
+ "name": "server",
255
+ "value": "server_name.database.windows.net"
256
+ },
257
+ {
258
+ "dataType": "Text",
259
+ "name": "database",
260
+ "value": "database_name"
261
+ }
262
+ ]},
263
+ 'privacyLevel': 'Organizational',
264
+ 'credentialDetails': {'credentials':{'credentialType': 'Basic',
265
+ 'userName': 'supercoolusername',
266
+ 'password': 'StrongPassword123!'},
267
+ 'singleSignOnType': 'None',
268
+ 'connectionEncryption': 'NotEncrypted',
269
+ 'skipTestConnection': False}
270
+ }
271
+
272
+ connection = fc.create_connection(connection_request=cr)
273
+
274
+ # Delete connection
275
+ status_code = fc.delete_connection(connection_id="id")
276
+
277
+ # Delete connection role assignment
278
+ status_code = fc.delete_connection_role_assignment(connection_id="id",
279
+ connection_role_assignment_id="role_assi_id")
280
+
281
+ # Get Connection
282
+ connection2 = fc.get_connection(connection_name="display_name")
283
+
284
+ # Get connection role assignment
285
+ role_assi = fc.get_connection_role_assignment(connection_id="id",
286
+ connection_role_assignment_id="role_assi_id")
287
+
288
+ # List connection role assignments
289
+ role_assis = fc.list_connection_role_assignments(connection_id="id")
290
+
291
+ # List Connections
292
+ connections = fc.list_connections()
293
+
294
+ # List supported connection types
295
+ supported_methods = fc.list_supported_connection_types(gateway_id='gw_id',
296
+ show_all_creation_methods=True)
297
+
298
+ # Update connection
299
+ cr = {
300
+ "connectivityType": "ShareableCloud",
301
+ "displayName": f"sqlserver{datetime_str}"
302
+ }
303
+
304
+ updated_connection = fc.update_connection(connection_id="id", connection_request=cr)
305
+
306
+ # Update connection role assignment
307
+ role_assi = fc.update_connection_role_assignment(connection_id="id",
308
+ connection_role_assignment_id="role_assi_id",
309
+ role='UserWithReshare')
310
+
311
+
228
312
  ```
229
313
 
230
314
  ### Deployment Pipelines
@@ -318,12 +402,18 @@ item = fc.get_item(workspace_id="workspace_id", item_id="item_id")
318
402
  # or
319
403
  item = ws.get_item(item_id="item_id")
320
404
 
405
+ # Get item definition
406
+ response = fc.get_item_definition(workspace_id="123123", item_id="123123", type = "Notebook")
321
407
 
322
408
  # List items
323
409
  item_list = fc.list_items(workspace_id="workspace_id")
324
410
  # or
325
411
  item_list = ws.list_items()
326
412
 
413
+ # List item connections
414
+ connections = fc.list_item_connections(workspace_id = '6a3',
415
+ item_id = '1bcc876')
416
+
327
417
 
328
418
  # Update an item
329
419
  fc.update_item(workspace_id="workspace_id", item_id="item_id" display_name="new_item_name", description = None, return_item=True)
@@ -332,6 +422,9 @@ ws.update_item(item_id="item_id", display_name="new_item_name", description = No
332
422
  # or
333
423
  item.update(display_name="new_item_name", description = None, return_item=True)
334
424
 
425
+ # Update item definition
426
+ response = fc.update_item_definition(workspace_id="dasf",
427
+ item_id="fsdsd", definition=definition)
335
428
 
336
429
  # Delete an item
337
430
  fc.delete_item(workspace_id="workspace_id", item_id="item_id")
@@ -342,6 +435,73 @@ item.delete()
342
435
 
343
436
  ```
344
437
 
438
+ ### Gateways
439
+
440
+ ```python
441
+
442
+ # Add gateway role assignment
443
+ principal = {"id" : "75dsbd8",
444
+ "type" : "ServicePrincipal"}
445
+ new_ras = fc.add_gateway_role_assignment(gateway_id="gw['id']", principal=principal, role='ConnectionCreator')
446
+
447
+ # Create a gateway
448
+ display_name = 'fabricvnet-123123' + datetime_str
449
+ gwr = {'displayName': display_name,
450
+ 'capacityId': '33saf79',
451
+ 'virtualNetworkAzureResource': {'virtualNetworkName': 'fabricvnet',
452
+ 'subnetName': 'default3',
453
+ 'resourceGroupName': 'fabricdemo',
454
+ 'subscriptionId': 'cfgf8'},
455
+ 'inactivityMinutesBeforeSleep': 30,
456
+ 'numberOfMemberGateways': 2,
457
+ 'type': 'VirtualNetwork'}
458
+
459
+ gw = fc.create_gateway(gateway_request=gwr)
460
+
461
+ # Delete gateway
462
+ resp_code = fc.delete_gateway(gateway_id= "gateway_id")
463
+
464
+ # Delete gatewway member
465
+ resp_code = fc.delete_gateway_member(gateway_id= "gateway_id", gateway_member_id= "gateway_member_id")
466
+
467
+ # Delete gateway role assignment
468
+ resp_code = fc.delete_gateway_role_assignment(gateway_id=gw['id'], gateway_role_assignment_id=new_ras['id'])
469
+
470
+ # Get gateway
471
+ gw_ = fc.get_gateway(gateway_id=gw["id"])
472
+
473
+ # Get gateway role assignment
474
+ new_ras_ = fc.get_gateway_role_assignment(gateway_id=gw['id'], gateway_role_assignment_id=new_ras['id'])
475
+
476
+ # List gateway members
477
+ gw_members = fc.list_gateway_members(gateway_id="gw_id")
478
+
479
+ # List gateway role assignments
480
+ ras = fc.list_gateway_role_assignments(gateway_id=gw['id'])
481
+
482
+ # list gateways
483
+ gateways = fc.list_gateways()
484
+
485
+ # Update gateway
486
+ gwr = {
487
+ "type": "OnPremises",
488
+ "displayName": "new_name",
489
+ "loadBalancingSetting": "Failover",
490
+ "allowCloudConnectionRefresh": False,
491
+ "allowCustomConnectors": False
492
+ }
493
+
494
+ gw_ = fc.update_gateway(gateway_id="gateway_id", gateway_request="gwr")
495
+
496
+ # Update gateway member
497
+ gw_member = fc.update_gateway_member(gateway_id = "gw_id", gateway_member_id = "gateway_member_id",
498
+ display_name="display_name_member", enabled=True)
499
+
500
+ # Update gateway role assignment
501
+ new_ras = fc.update_gateway_role_assignment(gateway_id= gw['id'], gateway_role_assignment_id=new_ras['id'], role='Admin')
502
+
503
+ ```
504
+
345
505
  ### Working with Git
346
506
 
347
507
  ```python
@@ -380,6 +540,11 @@ fc.git_get_status(workspace_id="workspaceid")
380
540
  # or
381
541
  ws.git_get_status()
382
542
 
543
+ # Get my credentials
544
+ git_credentials = fc.get_my_git_credentials(workspace_id="123123")
545
+
546
+ # Update my credentials
547
+ fc.update_my_git_credentials(workspace_id = "1232", git_credentials={"source": "Automatic"})
383
548
 
384
549
  # Update from git
385
550
  fc.update_from_git(workspace_id="workspaceid", remote_commit_hash="commit_hash",
@@ -470,6 +635,9 @@ ws.list_shortcuts(item_id="item_id",
470
635
  # or
471
636
  item.list_shortcuts(parent_path="Tables")
472
637
 
638
+ # Reset shortcut cache
639
+ fc.reset_shortcut_cache(workspace_id="23232", wait_for_completion = False)
640
+
473
641
  ```
474
642
 
475
643
 
@@ -485,7 +653,7 @@ ws.run_on_demand_item_job(item_id="item_id", job_type="RunNotebook", execution_d
485
653
  item.run_on_demand_item_job(job_type="RunNotebook", execution_data = None)
486
654
 
487
655
  # Other job types are e.g.:
488
- jobType=Pipeline
656
+ jobType="Pipeline"
489
657
 
490
658
 
491
659
  # Get an item job instance
@@ -502,6 +670,34 @@ ws.cancel_item_job_instance(item_id="item_id", job_instance_id="job_instance_id"
502
670
  # or
503
671
  item.cancel_item_job_instance(job_instance_id="job_instance_id")
504
672
 
673
+ # List item job instances
674
+ job_instances = fc.list_item_job_instances(workspace_id="workspace_id",
675
+ item_id="item_id")
676
+
677
+ # Create item schedule
678
+ configuration = {'type': 'Daily',
679
+ 'startDateTime': '2024-11-21T00:00:00',
680
+ 'endDateTime': '2028-11-08T23:59:00',
681
+ 'localTimeZoneId': 'Romance Standard Time',
682
+ 'times': ['15:39']}
683
+
684
+ schedule = fc.create_item_schedule(workspace_id="1232", item_id="1232", job_type="sparkjob", configuration=configuration, enabled=True)
685
+
686
+ # Delete item schedule
687
+ fc.delete_item_schedule(workspace_id="1232", item_id="1232", schedule_id="schedule_id", job_type="sparkjob")
688
+
689
+ # Get item schedule
690
+ schedule_check = fc.get_item_schedule(workspace_id="1232", item_id="1232",
691
+ schedule_id="schedule_id", job_type="sparkjob")
692
+
693
+ # Update item schedule
694
+ schedule_new = fc.update_item_schedule(workspace_id="1232", item_id="1232",
695
+ schedule_id="schedule_id", job_type="sparkjob", configuration=configuration, enabled=False)
696
+
697
+ # List item schedules
698
+ list_schedules = fc.list_item_schedules(workspace_id="1232", item_id="1232", job_type="sparkjob")
699
+
700
+
505
701
  ```
506
702
 
507
703
 
@@ -521,6 +717,32 @@ results = fc.get_operation_results(operation_id)
521
717
 
522
718
  ```
523
719
 
720
+ ### Managed Private Endpoints
721
+
722
+ ```python
723
+ from msfabricpysdkcore import FabricClientCore
724
+
725
+ fc = FabricClientCore()
726
+
727
+ # Create a workspace managed private endpoint
728
+ mpe = fc.create_workspace_managed_private_endpoint(workspace_id='535fb',
729
+ name = 'testmpe',
730
+ target_private_link_resource_id = '/subscriptions/c78/resourceGroups/fabricdemo/providers/Microsoft.Storage/storageAccounts/pu39',
731
+ target_subresource_type = 'dfs',
732
+ request_message = 'testmessage')
733
+
734
+ # Delete workspace managed private endpoint
735
+ status_code = fc.delete_workspace_managed_private_endpoint(workspace_id='53b',
736
+ managed_private_endpoint_id="mpeid")
737
+
738
+ # Get workspace managed private endpoint
739
+ mpe2 = fc.get_workspace_managed_private_endpoint(workspace_id='5355fb',
740
+ managed_private_endpoint_id="mpeid")
741
+
742
+ # List workspace managed private endpoints
743
+ mpes = fc.list_workspace_managed_private_endpoints(workspace_id='53b')
744
+ ```
745
+
524
746
  ### One Lake Data Access Security
525
747
 
526
748
  ```python
@@ -567,18 +789,22 @@ from msfabricpysdkcore import FabricClientAdmin
567
789
 
568
790
  fca = FabricClientAdmin()
569
791
 
570
-
571
- # List workspaces
572
- ws = fca.list_workspaces(name="testworkspace")[0]
573
-
574
792
  # Get workspace
575
793
  ws = fca.get_workspace(workspace_id="workspace_id")
576
794
 
577
- # Get workspace access details
795
+ # List git connectsions
796
+ git_connections = fca.discover_git_connections()
578
797
 
798
+ # List workspace access details
579
799
  ws_access = fca.list_workspace_access_details("workspace_id")
580
- # or
581
- ws_access = ws.list_access_details()
800
+
801
+ # List workspaces
802
+ ws = fca.list_workspaces(name="testworkspace")[0]
803
+
804
+ # Restore workspace
805
+ fca.restore_workspace(workspace_id = "213123",
806
+ new_workspace_admin_principal={"id": "081adiaj3", "type":"User"},
807
+ new_workspace_name = "Contoso Workspace")
582
808
  ```
583
809
 
584
810
  ### Admin API for Users
@@ -602,14 +828,33 @@ from msfabricpysdkcore import FabricClientAdmin
602
828
 
603
829
  fca = FabricClientAdmin()
604
830
 
605
- # Get tenant settings
606
-
831
+ # List tenant settings
607
832
  tenant_settings = fca.list_tenant_settings()
608
833
 
609
834
  # Get capacity tenant settings overrides
610
-
611
835
  overrides = fca.list_capacities_tenant_settings_overrides()
612
836
 
837
+ # Get domain tenant settings overrides
838
+ overrides = fca.list_domain_tenant_settings_overrides()
839
+
840
+ # Get workspace tenant settings overrides
841
+ overrides = fca.list_workspace_tenant_settings_overrides()
842
+
843
+ # Get capacity tenant settings overrides by capacity id
844
+ overrides = fca.list_capacity_tenant_settings_overrides_by_capacity_id(capacity_id="adsfasdfasf")
845
+
846
+ # Update tenant setting
847
+ fc.update_tenant_setting(tenant_setting_name = "PlatformMonitoringTenantSetting", enabled = True, delegate_to_capacity = None, delegate_to_domain = None,
848
+ delegate_to_workspace = None, enabled_security_groups = None, excluded_security_groups = None, properties = None)
849
+
850
+ # Update capacity tenant setting override
851
+ fc.update_capacity_tenant_setting_override(capacity_id = "capacity_id", tenant_setting_name = "PlatformMonitoringTenantSetting", enabled = True, delegate_to_workspace = None,
852
+ enabled_security_groups = None, excluded_security_groups = None)
853
+
854
+
855
+ # Delete capacity tenant setting override
856
+ fc.delete_capacity_tenant_setting_override(capacity_id = "capacity_id", tenant_setting_name = "PlatformMonitoringTenantSetting")
857
+
613
858
  ```
614
859
 
615
860
  ### Admin API for Items