|
22 | 22 | from typing_extensions import Annotated |
23 | 23 | from pydantic import Field, StrictStr, conlist, constr, validator |
24 | 24 |
|
25 | | -from typing import List, Optional |
| 25 | +from typing import Optional |
26 | 26 |
|
27 | 27 | from segment_public_api.models.create_cloud_source_regulation200_response import CreateCloudSourceRegulation200Response |
28 | 28 | from segment_public_api.models.create_cloud_source_regulation_v1_input import CreateCloudSourceRegulationV1Input |
@@ -810,7 +810,7 @@ def get_regulation_with_http_info(self, regulate_id : constr(strict=True), **kwa |
810 | 810 | _request_auth=_params.get('_request_auth')) |
811 | 811 |
|
812 | 812 | @validate_arguments |
813 | | - def list_regulations_from_source(self, source_id : constr(strict=True), pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(conlist(StrictStr))], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ListRegulationsFromSource200Response: # noqa: E501 |
| 813 | + def list_regulations_from_source(self, source_id : constr(strict=True), pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(StrictStr)], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ListRegulationsFromSource200Response: # noqa: E501 |
814 | 814 | """List Regulations from Source # noqa: E501 |
815 | 815 |
|
816 | 816 | Lists all Source-scoped regulations. # noqa: E501 |
@@ -846,7 +846,7 @@ def list_regulations_from_source(self, source_id : constr(strict=True), paginati |
846 | 846 | return self.list_regulations_from_source_with_http_info(source_id, pagination, status, regulation_types, **kwargs) # noqa: E501 |
847 | 847 |
|
848 | 848 | @validate_arguments |
849 | | - def list_regulations_from_source_with_http_info(self, source_id : constr(strict=True), pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(conlist(StrictStr))], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ApiResponse: # noqa: E501 |
| 849 | + def list_regulations_from_source_with_http_info(self, source_id : constr(strict=True), pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(StrictStr)], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ApiResponse: # noqa: E501 |
850 | 850 | """List Regulations from Source # noqa: E501 |
851 | 851 |
|
852 | 852 | Lists all Source-scoped regulations. # noqa: E501 |
@@ -934,7 +934,7 @@ def list_regulations_from_source_with_http_info(self, source_id : constr(strict= |
934 | 934 |
|
935 | 935 | if _params.get('regulation_types') is not None: # noqa: E501 |
936 | 936 | _query_params.append(('regulationTypes', _params['regulation_types'])) |
937 | | - _collection_formats['regulationTypes'] = 'csv' |
| 937 | + _collection_formats['regulationTypes'] = 'multi' |
938 | 938 |
|
939 | 939 | if _params.get('pagination') is not None: # noqa: E501 |
940 | 940 | _query_params.append(('pagination', _params['pagination'])) |
@@ -1121,7 +1121,7 @@ def list_suppressions_with_http_info(self, pagination : Annotated[PaginationInpu |
1121 | 1121 | _request_auth=_params.get('_request_auth')) |
1122 | 1122 |
|
1123 | 1123 | @validate_arguments |
1124 | | - def list_workspace_regulations(self, pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter the returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(conlist(StrictStr))], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ListWorkspaceRegulations200Response: # noqa: E501 |
| 1124 | + def list_workspace_regulations(self, pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter the returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(StrictStr)], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ListWorkspaceRegulations200Response: # noqa: E501 |
1125 | 1125 | """List Workspace Regulations # noqa: E501 |
1126 | 1126 |
|
1127 | 1127 | Lists all Workspace-scoped regulations. # noqa: E501 |
@@ -1155,7 +1155,7 @@ def list_workspace_regulations(self, pagination : Annotated[PaginationInput, Fie |
1155 | 1155 | return self.list_workspace_regulations_with_http_info(pagination, status, regulation_types, **kwargs) # noqa: E501 |
1156 | 1156 |
|
1157 | 1157 | @validate_arguments |
1158 | | - def list_workspace_regulations_with_http_info(self, pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter the returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(conlist(StrictStr))], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ApiResponse: # noqa: E501 |
| 1158 | + def list_workspace_regulations_with_http_info(self, pagination : Annotated[PaginationInput, Field(..., description="Pagination parameters. This parameter exists in v1.")], status : Annotated[Optional[StrictStr], Field(description="The status on which to filter the returned regulations. This parameter exists in v1.")] = None, regulation_types : Annotated[Optional[conlist(StrictStr)], Field(description="The regulation types on which to filter returned regulations. This parameter exists in v1.")] = None, **kwargs) -> ApiResponse: # noqa: E501 |
1159 | 1159 | """List Workspace Regulations # noqa: E501 |
1160 | 1160 |
|
1161 | 1161 | Lists all Workspace-scoped regulations. # noqa: E501 |
@@ -1237,7 +1237,7 @@ def list_workspace_regulations_with_http_info(self, pagination : Annotated[Pagin |
1237 | 1237 |
|
1238 | 1238 | if _params.get('regulation_types') is not None: # noqa: E501 |
1239 | 1239 | _query_params.append(('regulationTypes', _params['regulation_types'])) |
1240 | | - _collection_formats['regulationTypes'] = 'csv' |
| 1240 | + _collection_formats['regulationTypes'] = 'multi' |
1241 | 1241 |
|
1242 | 1242 | if _params.get('pagination') is not None: # noqa: E501 |
1243 | 1243 | _query_params.append(('pagination', _params['pagination'])) |
|
0 commit comments