cribl-control-plane 0.0.19__py3-none-any.whl → 0.0.21a1__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.

Potentially problematic release.


This version of cribl-control-plane might be problematic. Click here for more details.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "cribl-control-plane"
6
- __version__: str = "0.0.19"
7
- __openapi_doc_version__: str = "4.14.0-alpha.1753854543129-e0f06d67"
6
+ __version__: str = "0.0.21a1"
7
+ __openapi_doc_version__: str = "4.14.0-alpha.1753968519625-08e89eb4"
8
8
  __gen_version__: str = "2.660.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.0.19 2.660.0 4.14.0-alpha.1753854543129-e0f06d67 cribl-control-plane"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.0.21a1 2.660.0 4.14.0-alpha.1753968519625-08e89eb4 cribl-control-plane"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -477,3 +477,665 @@ class Lake(BaseSDK):
477
477
  raise errors.APIError("API error occurred", http_res, http_res_text)
478
478
 
479
479
  raise errors.APIError("Unexpected response received", http_res)
480
+
481
+ def delete_cribl_lake_dataset_by_lake_id_and_id(
482
+ self,
483
+ *,
484
+ lake_id: str,
485
+ id: str,
486
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
487
+ server_url: Optional[str] = None,
488
+ timeout_ms: Optional[int] = None,
489
+ http_headers: Optional[Mapping[str, str]] = None,
490
+ ) -> models.DeleteCriblLakeDatasetByLakeIDAndIDResponse:
491
+ r"""Delete a Dataset in the specified Lake
492
+
493
+ Delete a Dataset in the specified Lake
494
+
495
+ :param lake_id: lake id that contains the Datasets
496
+ :param id: dataset id to delete
497
+ :param retries: Override the default retry configuration for this method
498
+ :param server_url: Override the default server URL for this method
499
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
500
+ :param http_headers: Additional headers to set or replace on requests.
501
+ """
502
+ base_url = None
503
+ url_variables = None
504
+ if timeout_ms is None:
505
+ timeout_ms = self.sdk_configuration.timeout_ms
506
+
507
+ if server_url is not None:
508
+ base_url = server_url
509
+ else:
510
+ base_url = self._get_url(base_url, url_variables)
511
+
512
+ request = models.DeleteCriblLakeDatasetByLakeIDAndIDRequest(
513
+ lake_id=lake_id,
514
+ id=id,
515
+ )
516
+
517
+ req = self._build_request(
518
+ method="DELETE",
519
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
520
+ base_url=base_url,
521
+ url_variables=url_variables,
522
+ request=request,
523
+ request_body_required=False,
524
+ request_has_path_params=True,
525
+ request_has_query_params=True,
526
+ user_agent_header="user-agent",
527
+ accept_header_value="application/json",
528
+ http_headers=http_headers,
529
+ security=self.sdk_configuration.security,
530
+ timeout_ms=timeout_ms,
531
+ )
532
+
533
+ if retries == UNSET:
534
+ if self.sdk_configuration.retry_config is not UNSET:
535
+ retries = self.sdk_configuration.retry_config
536
+
537
+ retry_config = None
538
+ if isinstance(retries, utils.RetryConfig):
539
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
540
+
541
+ http_res = self.do_request(
542
+ hook_ctx=HookContext(
543
+ config=self.sdk_configuration,
544
+ base_url=base_url or "",
545
+ operation_id="deleteCriblLakeDatasetByLakeIdAndId",
546
+ oauth2_scopes=[],
547
+ security_source=get_security_from_env(
548
+ self.sdk_configuration.security, models.Security
549
+ ),
550
+ ),
551
+ request=req,
552
+ error_status_codes=["401", "4XX", "500", "5XX"],
553
+ retry_config=retry_config,
554
+ )
555
+
556
+ response_data: Any = None
557
+ if utils.match_response(http_res, "200", "application/json"):
558
+ return unmarshal_json_response(
559
+ models.DeleteCriblLakeDatasetByLakeIDAndIDResponse, http_res
560
+ )
561
+ if utils.match_response(http_res, "500", "application/json"):
562
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
563
+ raise errors.Error(response_data, http_res)
564
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
565
+ http_res_text = utils.stream_to_text(http_res)
566
+ raise errors.APIError("API error occurred", http_res, http_res_text)
567
+ if utils.match_response(http_res, "5XX", "*"):
568
+ http_res_text = utils.stream_to_text(http_res)
569
+ raise errors.APIError("API error occurred", http_res, http_res_text)
570
+
571
+ raise errors.APIError("Unexpected response received", http_res)
572
+
573
+ async def delete_cribl_lake_dataset_by_lake_id_and_id_async(
574
+ self,
575
+ *,
576
+ lake_id: str,
577
+ id: str,
578
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
579
+ server_url: Optional[str] = None,
580
+ timeout_ms: Optional[int] = None,
581
+ http_headers: Optional[Mapping[str, str]] = None,
582
+ ) -> models.DeleteCriblLakeDatasetByLakeIDAndIDResponse:
583
+ r"""Delete a Dataset in the specified Lake
584
+
585
+ Delete a Dataset in the specified Lake
586
+
587
+ :param lake_id: lake id that contains the Datasets
588
+ :param id: dataset id to delete
589
+ :param retries: Override the default retry configuration for this method
590
+ :param server_url: Override the default server URL for this method
591
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
592
+ :param http_headers: Additional headers to set or replace on requests.
593
+ """
594
+ base_url = None
595
+ url_variables = None
596
+ if timeout_ms is None:
597
+ timeout_ms = self.sdk_configuration.timeout_ms
598
+
599
+ if server_url is not None:
600
+ base_url = server_url
601
+ else:
602
+ base_url = self._get_url(base_url, url_variables)
603
+
604
+ request = models.DeleteCriblLakeDatasetByLakeIDAndIDRequest(
605
+ lake_id=lake_id,
606
+ id=id,
607
+ )
608
+
609
+ req = self._build_request_async(
610
+ method="DELETE",
611
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
612
+ base_url=base_url,
613
+ url_variables=url_variables,
614
+ request=request,
615
+ request_body_required=False,
616
+ request_has_path_params=True,
617
+ request_has_query_params=True,
618
+ user_agent_header="user-agent",
619
+ accept_header_value="application/json",
620
+ http_headers=http_headers,
621
+ security=self.sdk_configuration.security,
622
+ timeout_ms=timeout_ms,
623
+ )
624
+
625
+ if retries == UNSET:
626
+ if self.sdk_configuration.retry_config is not UNSET:
627
+ retries = self.sdk_configuration.retry_config
628
+
629
+ retry_config = None
630
+ if isinstance(retries, utils.RetryConfig):
631
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
632
+
633
+ http_res = await self.do_request_async(
634
+ hook_ctx=HookContext(
635
+ config=self.sdk_configuration,
636
+ base_url=base_url or "",
637
+ operation_id="deleteCriblLakeDatasetByLakeIdAndId",
638
+ oauth2_scopes=[],
639
+ security_source=get_security_from_env(
640
+ self.sdk_configuration.security, models.Security
641
+ ),
642
+ ),
643
+ request=req,
644
+ error_status_codes=["401", "4XX", "500", "5XX"],
645
+ retry_config=retry_config,
646
+ )
647
+
648
+ response_data: Any = None
649
+ if utils.match_response(http_res, "200", "application/json"):
650
+ return unmarshal_json_response(
651
+ models.DeleteCriblLakeDatasetByLakeIDAndIDResponse, http_res
652
+ )
653
+ if utils.match_response(http_res, "500", "application/json"):
654
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
655
+ raise errors.Error(response_data, http_res)
656
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
657
+ http_res_text = await utils.stream_to_text_async(http_res)
658
+ raise errors.APIError("API error occurred", http_res, http_res_text)
659
+ if utils.match_response(http_res, "5XX", "*"):
660
+ http_res_text = await utils.stream_to_text_async(http_res)
661
+ raise errors.APIError("API error occurred", http_res, http_res_text)
662
+
663
+ raise errors.APIError("Unexpected response received", http_res)
664
+
665
+ def get_cribl_lake_dataset_by_lake_id_and_id(
666
+ self,
667
+ *,
668
+ lake_id: str,
669
+ id: str,
670
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
671
+ server_url: Optional[str] = None,
672
+ timeout_ms: Optional[int] = None,
673
+ http_headers: Optional[Mapping[str, str]] = None,
674
+ ) -> models.GetCriblLakeDatasetByLakeIDAndIDResponse:
675
+ r"""Get a Dataset in the specified Lake
676
+
677
+ Get a Dataset in the specified Lake
678
+
679
+ :param lake_id: lake id that contains the Datasets
680
+ :param id: dataset id to get
681
+ :param retries: Override the default retry configuration for this method
682
+ :param server_url: Override the default server URL for this method
683
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
684
+ :param http_headers: Additional headers to set or replace on requests.
685
+ """
686
+ base_url = None
687
+ url_variables = None
688
+ if timeout_ms is None:
689
+ timeout_ms = self.sdk_configuration.timeout_ms
690
+
691
+ if server_url is not None:
692
+ base_url = server_url
693
+ else:
694
+ base_url = self._get_url(base_url, url_variables)
695
+
696
+ request = models.GetCriblLakeDatasetByLakeIDAndIDRequest(
697
+ lake_id=lake_id,
698
+ id=id,
699
+ )
700
+
701
+ req = self._build_request(
702
+ method="GET",
703
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
704
+ base_url=base_url,
705
+ url_variables=url_variables,
706
+ request=request,
707
+ request_body_required=False,
708
+ request_has_path_params=True,
709
+ request_has_query_params=True,
710
+ user_agent_header="user-agent",
711
+ accept_header_value="application/json",
712
+ http_headers=http_headers,
713
+ security=self.sdk_configuration.security,
714
+ timeout_ms=timeout_ms,
715
+ )
716
+
717
+ if retries == UNSET:
718
+ if self.sdk_configuration.retry_config is not UNSET:
719
+ retries = self.sdk_configuration.retry_config
720
+
721
+ retry_config = None
722
+ if isinstance(retries, utils.RetryConfig):
723
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
724
+
725
+ http_res = self.do_request(
726
+ hook_ctx=HookContext(
727
+ config=self.sdk_configuration,
728
+ base_url=base_url or "",
729
+ operation_id="getCriblLakeDatasetByLakeIdAndId",
730
+ oauth2_scopes=[],
731
+ security_source=get_security_from_env(
732
+ self.sdk_configuration.security, models.Security
733
+ ),
734
+ ),
735
+ request=req,
736
+ error_status_codes=["401", "4XX", "500", "5XX"],
737
+ retry_config=retry_config,
738
+ )
739
+
740
+ response_data: Any = None
741
+ if utils.match_response(http_res, "200", "application/json"):
742
+ return unmarshal_json_response(
743
+ models.GetCriblLakeDatasetByLakeIDAndIDResponse, http_res
744
+ )
745
+ if utils.match_response(http_res, "500", "application/json"):
746
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
747
+ raise errors.Error(response_data, http_res)
748
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
749
+ http_res_text = utils.stream_to_text(http_res)
750
+ raise errors.APIError("API error occurred", http_res, http_res_text)
751
+ if utils.match_response(http_res, "5XX", "*"):
752
+ http_res_text = utils.stream_to_text(http_res)
753
+ raise errors.APIError("API error occurred", http_res, http_res_text)
754
+
755
+ raise errors.APIError("Unexpected response received", http_res)
756
+
757
+ async def get_cribl_lake_dataset_by_lake_id_and_id_async(
758
+ self,
759
+ *,
760
+ lake_id: str,
761
+ id: str,
762
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
763
+ server_url: Optional[str] = None,
764
+ timeout_ms: Optional[int] = None,
765
+ http_headers: Optional[Mapping[str, str]] = None,
766
+ ) -> models.GetCriblLakeDatasetByLakeIDAndIDResponse:
767
+ r"""Get a Dataset in the specified Lake
768
+
769
+ Get a Dataset in the specified Lake
770
+
771
+ :param lake_id: lake id that contains the Datasets
772
+ :param id: dataset id to get
773
+ :param retries: Override the default retry configuration for this method
774
+ :param server_url: Override the default server URL for this method
775
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
776
+ :param http_headers: Additional headers to set or replace on requests.
777
+ """
778
+ base_url = None
779
+ url_variables = None
780
+ if timeout_ms is None:
781
+ timeout_ms = self.sdk_configuration.timeout_ms
782
+
783
+ if server_url is not None:
784
+ base_url = server_url
785
+ else:
786
+ base_url = self._get_url(base_url, url_variables)
787
+
788
+ request = models.GetCriblLakeDatasetByLakeIDAndIDRequest(
789
+ lake_id=lake_id,
790
+ id=id,
791
+ )
792
+
793
+ req = self._build_request_async(
794
+ method="GET",
795
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
796
+ base_url=base_url,
797
+ url_variables=url_variables,
798
+ request=request,
799
+ request_body_required=False,
800
+ request_has_path_params=True,
801
+ request_has_query_params=True,
802
+ user_agent_header="user-agent",
803
+ accept_header_value="application/json",
804
+ http_headers=http_headers,
805
+ security=self.sdk_configuration.security,
806
+ timeout_ms=timeout_ms,
807
+ )
808
+
809
+ if retries == UNSET:
810
+ if self.sdk_configuration.retry_config is not UNSET:
811
+ retries = self.sdk_configuration.retry_config
812
+
813
+ retry_config = None
814
+ if isinstance(retries, utils.RetryConfig):
815
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
816
+
817
+ http_res = await self.do_request_async(
818
+ hook_ctx=HookContext(
819
+ config=self.sdk_configuration,
820
+ base_url=base_url or "",
821
+ operation_id="getCriblLakeDatasetByLakeIdAndId",
822
+ oauth2_scopes=[],
823
+ security_source=get_security_from_env(
824
+ self.sdk_configuration.security, models.Security
825
+ ),
826
+ ),
827
+ request=req,
828
+ error_status_codes=["401", "4XX", "500", "5XX"],
829
+ retry_config=retry_config,
830
+ )
831
+
832
+ response_data: Any = None
833
+ if utils.match_response(http_res, "200", "application/json"):
834
+ return unmarshal_json_response(
835
+ models.GetCriblLakeDatasetByLakeIDAndIDResponse, http_res
836
+ )
837
+ if utils.match_response(http_res, "500", "application/json"):
838
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
839
+ raise errors.Error(response_data, http_res)
840
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
841
+ http_res_text = await utils.stream_to_text_async(http_res)
842
+ raise errors.APIError("API error occurred", http_res, http_res_text)
843
+ if utils.match_response(http_res, "5XX", "*"):
844
+ http_res_text = await utils.stream_to_text_async(http_res)
845
+ raise errors.APIError("API error occurred", http_res, http_res_text)
846
+
847
+ raise errors.APIError("Unexpected response received", http_res)
848
+
849
+ def update_cribl_lake_dataset_by_lake_id_and_id(
850
+ self,
851
+ *,
852
+ lake_id: str,
853
+ id_param: str,
854
+ id: str,
855
+ accelerated_fields: Optional[List[str]] = None,
856
+ bucket_name: Optional[str] = None,
857
+ cache_connection: Optional[
858
+ Union[models.CacheConnection, models.CacheConnectionTypedDict]
859
+ ] = None,
860
+ deletion_started_at: Optional[float] = None,
861
+ description: Optional[str] = None,
862
+ format_: Optional[models.CriblLakeDatasetFormat] = None,
863
+ http_da_used: Optional[bool] = None,
864
+ retention_period_in_days: Optional[float] = None,
865
+ search_config: Optional[
866
+ Union[
867
+ models.LakeDatasetSearchConfig, models.LakeDatasetSearchConfigTypedDict
868
+ ]
869
+ ] = None,
870
+ storage_location_id: Optional[str] = None,
871
+ view_name: Optional[str] = None,
872
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
873
+ server_url: Optional[str] = None,
874
+ timeout_ms: Optional[int] = None,
875
+ http_headers: Optional[Mapping[str, str]] = None,
876
+ ) -> models.UpdateCriblLakeDatasetByLakeIDAndIDResponse:
877
+ r"""Update a Dataset in the specified Lake
878
+
879
+ Update a Dataset in the specified Lake
880
+
881
+ :param lake_id: lake id that contains the Datasets
882
+ :param id_param: dataset id to update
883
+ :param id:
884
+ :param accelerated_fields:
885
+ :param bucket_name:
886
+ :param cache_connection:
887
+ :param deletion_started_at:
888
+ :param description:
889
+ :param format_:
890
+ :param http_da_used:
891
+ :param retention_period_in_days:
892
+ :param search_config:
893
+ :param storage_location_id:
894
+ :param view_name:
895
+ :param retries: Override the default retry configuration for this method
896
+ :param server_url: Override the default server URL for this method
897
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
898
+ :param http_headers: Additional headers to set or replace on requests.
899
+ """
900
+ base_url = None
901
+ url_variables = None
902
+ if timeout_ms is None:
903
+ timeout_ms = self.sdk_configuration.timeout_ms
904
+
905
+ if server_url is not None:
906
+ base_url = server_url
907
+ else:
908
+ base_url = self._get_url(base_url, url_variables)
909
+
910
+ request = models.UpdateCriblLakeDatasetByLakeIDAndIDRequest(
911
+ lake_id=lake_id,
912
+ id_param=id_param,
913
+ cribl_lake_dataset=models.CriblLakeDataset(
914
+ accelerated_fields=accelerated_fields,
915
+ bucket_name=bucket_name,
916
+ cache_connection=utils.get_pydantic_model(
917
+ cache_connection, Optional[models.CacheConnection]
918
+ ),
919
+ deletion_started_at=deletion_started_at,
920
+ description=description,
921
+ format_=format_,
922
+ http_da_used=http_da_used,
923
+ id=id,
924
+ retention_period_in_days=retention_period_in_days,
925
+ search_config=utils.get_pydantic_model(
926
+ search_config, Optional[models.LakeDatasetSearchConfig]
927
+ ),
928
+ storage_location_id=storage_location_id,
929
+ view_name=view_name,
930
+ ),
931
+ )
932
+
933
+ req = self._build_request(
934
+ method="PATCH",
935
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
936
+ base_url=base_url,
937
+ url_variables=url_variables,
938
+ request=request,
939
+ request_body_required=True,
940
+ request_has_path_params=True,
941
+ request_has_query_params=True,
942
+ user_agent_header="user-agent",
943
+ accept_header_value="application/json",
944
+ http_headers=http_headers,
945
+ security=self.sdk_configuration.security,
946
+ get_serialized_body=lambda: utils.serialize_request_body(
947
+ request.cribl_lake_dataset,
948
+ False,
949
+ False,
950
+ "json",
951
+ models.CriblLakeDataset,
952
+ ),
953
+ timeout_ms=timeout_ms,
954
+ )
955
+
956
+ if retries == UNSET:
957
+ if self.sdk_configuration.retry_config is not UNSET:
958
+ retries = self.sdk_configuration.retry_config
959
+
960
+ retry_config = None
961
+ if isinstance(retries, utils.RetryConfig):
962
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
963
+
964
+ http_res = self.do_request(
965
+ hook_ctx=HookContext(
966
+ config=self.sdk_configuration,
967
+ base_url=base_url or "",
968
+ operation_id="updateCriblLakeDatasetByLakeIdAndId",
969
+ oauth2_scopes=[],
970
+ security_source=get_security_from_env(
971
+ self.sdk_configuration.security, models.Security
972
+ ),
973
+ ),
974
+ request=req,
975
+ error_status_codes=["401", "4XX", "500", "5XX"],
976
+ retry_config=retry_config,
977
+ )
978
+
979
+ response_data: Any = None
980
+ if utils.match_response(http_res, "200", "application/json"):
981
+ return unmarshal_json_response(
982
+ models.UpdateCriblLakeDatasetByLakeIDAndIDResponse, http_res
983
+ )
984
+ if utils.match_response(http_res, "500", "application/json"):
985
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
986
+ raise errors.Error(response_data, http_res)
987
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
988
+ http_res_text = utils.stream_to_text(http_res)
989
+ raise errors.APIError("API error occurred", http_res, http_res_text)
990
+ if utils.match_response(http_res, "5XX", "*"):
991
+ http_res_text = utils.stream_to_text(http_res)
992
+ raise errors.APIError("API error occurred", http_res, http_res_text)
993
+
994
+ raise errors.APIError("Unexpected response received", http_res)
995
+
996
+ async def update_cribl_lake_dataset_by_lake_id_and_id_async(
997
+ self,
998
+ *,
999
+ lake_id: str,
1000
+ id_param: str,
1001
+ id: str,
1002
+ accelerated_fields: Optional[List[str]] = None,
1003
+ bucket_name: Optional[str] = None,
1004
+ cache_connection: Optional[
1005
+ Union[models.CacheConnection, models.CacheConnectionTypedDict]
1006
+ ] = None,
1007
+ deletion_started_at: Optional[float] = None,
1008
+ description: Optional[str] = None,
1009
+ format_: Optional[models.CriblLakeDatasetFormat] = None,
1010
+ http_da_used: Optional[bool] = None,
1011
+ retention_period_in_days: Optional[float] = None,
1012
+ search_config: Optional[
1013
+ Union[
1014
+ models.LakeDatasetSearchConfig, models.LakeDatasetSearchConfigTypedDict
1015
+ ]
1016
+ ] = None,
1017
+ storage_location_id: Optional[str] = None,
1018
+ view_name: Optional[str] = None,
1019
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
1020
+ server_url: Optional[str] = None,
1021
+ timeout_ms: Optional[int] = None,
1022
+ http_headers: Optional[Mapping[str, str]] = None,
1023
+ ) -> models.UpdateCriblLakeDatasetByLakeIDAndIDResponse:
1024
+ r"""Update a Dataset in the specified Lake
1025
+
1026
+ Update a Dataset in the specified Lake
1027
+
1028
+ :param lake_id: lake id that contains the Datasets
1029
+ :param id_param: dataset id to update
1030
+ :param id:
1031
+ :param accelerated_fields:
1032
+ :param bucket_name:
1033
+ :param cache_connection:
1034
+ :param deletion_started_at:
1035
+ :param description:
1036
+ :param format_:
1037
+ :param http_da_used:
1038
+ :param retention_period_in_days:
1039
+ :param search_config:
1040
+ :param storage_location_id:
1041
+ :param view_name:
1042
+ :param retries: Override the default retry configuration for this method
1043
+ :param server_url: Override the default server URL for this method
1044
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1045
+ :param http_headers: Additional headers to set or replace on requests.
1046
+ """
1047
+ base_url = None
1048
+ url_variables = None
1049
+ if timeout_ms is None:
1050
+ timeout_ms = self.sdk_configuration.timeout_ms
1051
+
1052
+ if server_url is not None:
1053
+ base_url = server_url
1054
+ else:
1055
+ base_url = self._get_url(base_url, url_variables)
1056
+
1057
+ request = models.UpdateCriblLakeDatasetByLakeIDAndIDRequest(
1058
+ lake_id=lake_id,
1059
+ id_param=id_param,
1060
+ cribl_lake_dataset=models.CriblLakeDataset(
1061
+ accelerated_fields=accelerated_fields,
1062
+ bucket_name=bucket_name,
1063
+ cache_connection=utils.get_pydantic_model(
1064
+ cache_connection, Optional[models.CacheConnection]
1065
+ ),
1066
+ deletion_started_at=deletion_started_at,
1067
+ description=description,
1068
+ format_=format_,
1069
+ http_da_used=http_da_used,
1070
+ id=id,
1071
+ retention_period_in_days=retention_period_in_days,
1072
+ search_config=utils.get_pydantic_model(
1073
+ search_config, Optional[models.LakeDatasetSearchConfig]
1074
+ ),
1075
+ storage_location_id=storage_location_id,
1076
+ view_name=view_name,
1077
+ ),
1078
+ )
1079
+
1080
+ req = self._build_request_async(
1081
+ method="PATCH",
1082
+ path="/products/lake/lakes/{lakeId}/datasets/{id}",
1083
+ base_url=base_url,
1084
+ url_variables=url_variables,
1085
+ request=request,
1086
+ request_body_required=True,
1087
+ request_has_path_params=True,
1088
+ request_has_query_params=True,
1089
+ user_agent_header="user-agent",
1090
+ accept_header_value="application/json",
1091
+ http_headers=http_headers,
1092
+ security=self.sdk_configuration.security,
1093
+ get_serialized_body=lambda: utils.serialize_request_body(
1094
+ request.cribl_lake_dataset,
1095
+ False,
1096
+ False,
1097
+ "json",
1098
+ models.CriblLakeDataset,
1099
+ ),
1100
+ timeout_ms=timeout_ms,
1101
+ )
1102
+
1103
+ if retries == UNSET:
1104
+ if self.sdk_configuration.retry_config is not UNSET:
1105
+ retries = self.sdk_configuration.retry_config
1106
+
1107
+ retry_config = None
1108
+ if isinstance(retries, utils.RetryConfig):
1109
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
1110
+
1111
+ http_res = await self.do_request_async(
1112
+ hook_ctx=HookContext(
1113
+ config=self.sdk_configuration,
1114
+ base_url=base_url or "",
1115
+ operation_id="updateCriblLakeDatasetByLakeIdAndId",
1116
+ oauth2_scopes=[],
1117
+ security_source=get_security_from_env(
1118
+ self.sdk_configuration.security, models.Security
1119
+ ),
1120
+ ),
1121
+ request=req,
1122
+ error_status_codes=["401", "4XX", "500", "5XX"],
1123
+ retry_config=retry_config,
1124
+ )
1125
+
1126
+ response_data: Any = None
1127
+ if utils.match_response(http_res, "200", "application/json"):
1128
+ return unmarshal_json_response(
1129
+ models.UpdateCriblLakeDatasetByLakeIDAndIDResponse, http_res
1130
+ )
1131
+ if utils.match_response(http_res, "500", "application/json"):
1132
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
1133
+ raise errors.Error(response_data, http_res)
1134
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
1135
+ http_res_text = await utils.stream_to_text_async(http_res)
1136
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1137
+ if utils.match_response(http_res, "5XX", "*"):
1138
+ http_res_text = await utils.stream_to_text_async(http_res)
1139
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1140
+
1141
+ raise errors.APIError("Unexpected response received", http_res)