From 060889bc5ef3d077c09927a2a8a1982e591caabb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 9 Apr 2026 13:43:47 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../LabelStudio.ActionsClient.Create.g.cs | 29 +- .../LabelStudio.ActionsClient.List.g.cs | 29 +- .../Generated/LabelStudio.ActionsClient.g.cs | 2 +- .../LabelStudio.ActivityLogsClient.List.g.cs | 29 +- .../LabelStudio.ActivityLogsClient.g.cs | 2 +- ...lyticsClient.ApiAnalyticsKpisRetrieve.g.cs | 29 +- ...yticsClient.ApiAnalyticsKpisRetrieve2.g.cs | 29 +- ...alyticsClient.ApiAnalyticsViewsCreate.g.cs | 29 +- ...lyticsClient.ApiAnalyticsViewsDestroy.g.cs | 29 +- ...AnalyticsClient.ApiAnalyticsViewsList.g.cs | 29 +- ...Client.ApiAnalyticsViewsPartialUpdate.g.cs | 29 +- ...yticsClient.ApiAnalyticsViewsRetrieve.g.cs | 29 +- ...alyticsClient.ApiAnalyticsViewsUpdate.g.cs | 29 +- .../LabelStudio.AnalyticsClient.g.cs | 2 +- ...Studio.AnnotationHistoryClient.Delete.g.cs | 29 +- ...elStudio.AnnotationHistoryClient.List.g.cs | 29 +- ...nnotationHistoryClient.ListForProject.g.cs | 29 +- ...udio.AnnotationHistoryClient.Retrieve.g.cs | 29 +- .../LabelStudio.AnnotationHistoryClient.g.cs | 2 +- ...tudio.AnnotationReviews2Client.Create.g.cs | 29 +- ...tudio.AnnotationReviews2Client.Delete.g.cs | 29 +- ...elStudio.AnnotationReviews2Client.Get.g.cs | 29 +- ...lStudio.AnnotationReviews2Client.List.g.cs | 29 +- ...tudio.AnnotationReviews2Client.Update.g.cs | 29 +- .../LabelStudio.AnnotationReviews2Client.g.cs | 2 +- ...iewsClient.ApiAnnotationReviewsUpdate.g.cs | 29 +- .../LabelStudio.AnnotationReviewsClient.g.cs | 2 +- .../LabelStudio.AnnotationsClient.Create.g.cs | 29 +- ...elStudio.AnnotationsClient.CreateBulk.g.cs | 29 +- .../LabelStudio.AnnotationsClient.Delete.g.cs | 29 +- ...elStudio.AnnotationsClient.DeleteBulk.g.cs | 29 +- .../LabelStudio.AnnotationsClient.Get.g.cs | 29 +- .../LabelStudio.AnnotationsClient.List.g.cs | 29 +- .../LabelStudio.AnnotationsClient.Update.g.cs | 29 +- .../LabelStudio.AnnotationsClient.g.cs | 2 +- .../Generated/LabelStudio.AwsClient.Logs.g.cs | 29 +- .../Generated/LabelStudio.AwsClient.g.cs | 2 +- .../LabelStudio.BillingClient.Info.g.cs | 29 +- .../Generated/LabelStudio.BillingClient.g.cs | 2 +- .../LabelStudio.Blueprints2Client.Create.g.cs | 29 +- .../LabelStudio.Blueprints2Client.Delete.g.cs | 29 +- .../LabelStudio.Blueprints2Client.Update.g.cs | 29 +- .../LabelStudio.Blueprints2Client.g.cs | 2 +- ...nt.ApiBlueprintsCreateProjectRetrieve.g.cs | 37 +- .../LabelStudio.BlueprintsClient.g.cs | 2 +- .../LabelStudio.Comments2Client.Create.g.cs | 29 +- .../LabelStudio.Comments2Client.Delete.g.cs | 29 +- .../LabelStudio.Comments2Client.Export.g.cs | 29 +- .../LabelStudio.Comments2Client.Get.g.cs | 29 +- .../LabelStudio.Comments2Client.List.g.cs | 29 +- .../LabelStudio.Comments2Client.Update.g.cs | 29 +- .../LabelStudio.Comments2Client.g.cs | 2 +- ...udio.CommentsClient.ApiCommentsUpdate.g.cs | 29 +- .../Generated/LabelStudio.CommentsClient.g.cs | 2 +- ...orerClient.ApiDatasetsColumnsRetrieve.g.cs | 29 +- ...xplorerClient.ApiDatasetsImportCreate.g.cs | 29 +- ...ient.ApiDatasetsTasksMetadataRetrieve.g.cs | 29 +- ...plorerClient.ApiDatasetsTasksRetrieve.g.cs | 29 +- .../LabelStudio.DataExplorerClient.g.cs | 2 +- ...anagerClient.ApiDmActionsFormRetrieve.g.cs | 29 +- ...ataManagerClient.ApiDmProjectRetrieve.g.cs | 29 +- ...io.DataManagerClient.ApiDmViewsUpdate.g.cs | 29 +- .../LabelStudio.DataManagerClient.g.cs | 2 +- ...setStoragesAzureCheckForRecordsCreate.g.cs | 29 +- ...piDatasetStoragesAzureColumnsRetrieve.g.cs | 29 +- ...eClient.ApiDatasetStoragesAzureCreate.g.cs | 29 +- ...Client.ApiDatasetStoragesAzureDestroy.g.cs | 29 +- ...ureClient.ApiDatasetStoragesAzureList.g.cs | 29 +- ....ApiDatasetStoragesAzurePartialUpdate.g.cs | 29 +- ...lient.ApiDatasetStoragesAzureRetrieve.g.cs | 29 +- ...ent.ApiDatasetStoragesAzureSyncCreate.g.cs | 29 +- ...ApiDatasetStoragesAzureValidateCreate.g.cs | 29 +- ...LabelStudio.DatasetStorageAzureClient.g.cs | 2 +- ...tasetStoragesGcsCheckForRecordsCreate.g.cs | 29 +- ....ApiDatasetStoragesGcsColumnsRetrieve.g.cs | 29 +- ...GcsClient.ApiDatasetStoragesGcsCreate.g.cs | 29 +- ...csClient.ApiDatasetStoragesGcsDestroy.g.cs | 29 +- ...geGcsClient.ApiDatasetStoragesGcsList.g.cs | 29 +- ...nt.ApiDatasetStoragesGcsPartialUpdate.g.cs | 29 +- ...sClient.ApiDatasetStoragesGcsRetrieve.g.cs | 29 +- ...lient.ApiDatasetStoragesGcsSyncCreate.g.cs | 29 +- ...t.ApiDatasetStoragesGcsValidateCreate.g.cs | 29 +- .../LabelStudio.DatasetStorageGcsClient.g.cs | 2 +- ...atasetStoragesS3CheckForRecordsCreate.g.cs | 29 +- ...t.ApiDatasetStoragesS3ColumnsRetrieve.g.cs | 29 +- ...geS3Client.ApiDatasetStoragesS3Create.g.cs | 29 +- ...eS3Client.ApiDatasetStoragesS3Destroy.g.cs | 29 +- ...rageS3Client.ApiDatasetStoragesS3List.g.cs | 29 +- ...ent.ApiDatasetStoragesS3PartialUpdate.g.cs | 29 +- ...S3Client.ApiDatasetStoragesS3Retrieve.g.cs | 29 +- ...Client.ApiDatasetStoragesS3SyncCreate.g.cs | 29 +- ...nt.ApiDatasetStoragesS3ValidateCreate.g.cs | 29 +- .../LabelStudio.DatasetStorageS3Client.g.cs | 2 +- ...udio.DatasetsClient.ApiDatasetsCreate.g.cs | 29 +- ...dio.DatasetsClient.ApiDatasetsDestroy.g.cs | 29 +- ...Client.ApiDatasetsImportPartialUpdate.g.cs | 29 +- ...Studio.DatasetsClient.ApiDatasetsList.g.cs | 29 +- ...tasetsClient.ApiDatasetsMembersCreate.g.cs | 29 +- ...asetsClient.ApiDatasetsMembersDestroy.g.cs | 29 +- ...DatasetsClient.ApiDatasetsMembersList.g.cs | 29 +- ...tasetsClient.ApiDatasetsPartialUpdate.g.cs | 29 +- ...io.DatasetsClient.ApiDatasetsRetrieve.g.cs | 29 +- ...udio.DatasetsClient.ApiDatasetsUpdate.g.cs | 29 +- ...DatasetsClient.ApiDatasetsViewsCreate.g.cs | 29 +- ...atasetsClient.ApiDatasetsViewsDestroy.g.cs | 29 +- ...o.DatasetsClient.ApiDatasetsViewsList.g.cs | 29 +- ...sClient.ApiDatasetsViewsPartialUpdate.g.cs | 29 +- ...tsClient.ApiDatasetsViewsResetDestroy.g.cs | 29 +- ...tasetsClient.ApiDatasetsViewsRetrieve.g.cs | 29 +- ...DatasetsClient.ApiDatasetsViewsUpdate.g.cs | 29 +- .../Generated/LabelStudio.DatasetsClient.g.cs | 2 +- ...udio.Dimensions2Client.CancelBackfill.g.cs | 29 +- .../LabelStudio.Dimensions2Client.Create.g.cs | 29 +- .../LabelStudio.Dimensions2Client.Delete.g.cs | 29 +- .../LabelStudio.Dimensions2Client.Get.g.cs | 29 +- ...o.Dimensions2Client.GetBackfillStatus.g.cs | 29 +- .../LabelStudio.Dimensions2Client.List.g.cs | 29 +- ...tudio.Dimensions2Client.ListBackfills.g.cs | 29 +- ...dio.Dimensions2Client.TriggerBackfill.g.cs | 29 +- .../LabelStudio.Dimensions2Client.Update.g.cs | 29 +- .../LabelStudio.Dimensions2Client.g.cs | 2 +- ...onsClient.ApiProjectsDimensionsUpdate.g.cs | 29 +- .../LabelStudio.DimensionsClient.Get2.g.cs | 29 +- .../LabelStudio.DimensionsClient.g.cs | 2 +- .../LabelStudio.ExportClient.Convert.g.cs | 29 +- .../LabelStudio.ExportClient.Create.g.cs | 29 +- .../LabelStudio.ExportClient.Delete.g.cs | 29 +- .../LabelStudio.ExportClient.Download.g.cs | 29 +- .../LabelStudio.ExportClient.Get.g.cs | 29 +- .../LabelStudio.ExportClient.List.g.cs | 29 +- .../Generated/LabelStudio.ExportClient.g.cs | 2 +- ...belStudioClient.Authorizations.Bearer.g.cs | 1 + .../LabelStudio.ILabelStudioClient.g.cs | 5 + ...belStudio.IOrganizationsClient.Delete.g.cs | 4 +- ...abelStudio.IOrganizationsClient.List3.g.cs | 2 + ...belStudio.IOrganizationsClient.Update.g.cs | 5 + ...OrganizationsClient.UpdateDefaultRole.g.cs | 4 + .../LabelStudio.IProjectsClient.Create2.g.cs | 4 +- .../LabelStudio.IProjectsClient.Delete2.g.cs | 8 +- ...Studio.IProjectsClient.DeployFunction.g.cs | 45 + ...belStudio.IProjectsClient.GetFunction.g.cs | 24 + ...tudio.IProjectsClient.GetFunctionLogs.g.cs | 32 + ...Studio.IProjectsClient.GetGcpFunction.g.cs | 24 + .../LabelStudio.IProjectsClient.Remove.g.cs | 4 +- ...dio.IProjectsClient.UpdateGcpFunction.g.cs | 55 + .../LabelStudio.ISsoClient.Update.g.cs | 4 + ...Studio.ISsoClient.ValidateMetadataUrl.g.cs | 4 +- ...abelStudio.IStorageGcsSaClient.Create.g.cs | 112 + ...belStudio.IStorageGcsSaClient.Create2.g.cs | 120 ++ ...abelStudio.IStorageGcsSaClient.Delete.g.cs | 24 + ...belStudio.IStorageGcsSaClient.Delete2.g.cs | 24 + .../LabelStudio.IStorageGcsSaClient.Get.g.cs | 24 + .../LabelStudio.IStorageGcsSaClient.Get2.g.cs | 24 + .../LabelStudio.IStorageGcsSaClient.List.g.cs | 26 + ...LabelStudio.IStorageGcsSaClient.List2.g.cs | 26 + .../LabelStudio.IStorageGcsSaClient.Sync.g.cs | 24 + ...LabelStudio.IStorageGcsSaClient.Sync2.g.cs | 24 + ...abelStudio.IStorageGcsSaClient.Update.g.cs | 116 ++ ...belStudio.IStorageGcsSaClient.Update2.g.cs | 124 ++ ...elStudio.IStorageGcsSaClient.Validate.g.cs | 112 + ...lStudio.IStorageGcsSaClient.Validate2.g.cs | 120 ++ .../LabelStudio.IStorageGcsSaClient.g.cs | 43 + ...LabelStudio.IWorkspacesClient.Delete2.g.cs | 4 +- ...LabelStudio.IWorkspacesClient.Delete3.g.cs | 12 +- .../LabelStudio.IWorkspacesClient.Remove.g.cs | 4 +- .../LabelStudio.ImportClient.Delete.g.cs | 29 +- .../LabelStudio.ImportClient.DeleteMany.g.cs | 29 +- .../LabelStudio.ImportClient.Download.g.cs | 29 +- .../LabelStudio.ImportClient.Get.g.cs | 29 +- .../LabelStudio.ImportClient.List.g.cs | 29 +- .../LabelStudio.ImportClient.Update.g.cs | 29 +- .../Generated/LabelStudio.ImportClient.g.cs | 2 +- ....ApiOrganizationsMembershipsListScope.g.cs | 53 + ...nizationsMembershipsListScopeNullable.g.cs | 60 + ...sCustomFunctionRetrieveResponseStatus.g.cs | 53 + ...unctionRetrieveResponseStatusNullable.g.cs | 60 + ...pCustomFunctionRetrieveResponseStatus.g.cs | 53 + ...unctionRetrieveResponseStatusNullable.g.cs | 60 + .../LabelStudio.JsonSerializerContext.g.cs | 31 +- ...abelStudio.JsonSerializerContextTypes.g.cs | 1292 ++++++------ .../LabelStudio.JwtSettingsClient.Get.g.cs | 29 +- .../LabelStudio.JwtSettingsClient.Update.g.cs | 29 +- .../LabelStudio.JwtSettingsClient.g.cs | 2 +- ...belStudioClient.Authorizations.Bearer.g.cs | 12 +- ...LabelStudioClient.Constructors.Bearer.g.cs | 1 + .../LabelStudio.LabelStudioClient.g.cs | 11 +- .../LabelStudio.Labels2Client.Create2.g.cs | 29 +- .../LabelStudio.Labels2Client.Delete2.g.cs | 29 +- .../LabelStudio.Labels2Client.Get2.g.cs | 29 +- .../LabelStudio.Labels2Client.List2.g.cs | 29 +- .../LabelStudio.Labels2Client.Update2.g.cs | 29 +- .../Generated/LabelStudio.Labels2Client.g.cs | 2 +- .../LabelStudio.LabelsClient.Create.g.cs | 29 +- .../LabelStudio.LabelsClient.Delete.g.cs | 29 +- .../LabelStudio.LabelsClient.Get.g.cs | 29 +- .../LabelStudio.LabelsClient.List.g.cs | 29 +- .../LabelStudio.LabelsClient.Update.g.cs | 29 +- .../LabelStudio.LabelsClient.UpdateMany.g.cs | 29 +- .../Generated/LabelStudio.LabelsClient.g.cs | 2 +- ...ent.ApiLlmOpenaiChatCompletionsCreate.g.cs | 29 +- .../Generated/LabelStudio.LlmClient.g.cs | 2 +- .../LabelStudio.MlClient.Create.g.cs | 29 +- .../LabelStudio.MlClient.Delete.g.cs | 29 +- .../Generated/LabelStudio.MlClient.Get.g.cs | 29 +- .../Generated/LabelStudio.MlClient.List.g.cs | 29 +- ...abelStudio.MlClient.ListModelVersions.g.cs | 29 +- .../LabelStudio.MlClient.PredictAllTasks.g.cs | 29 +- ...belStudio.MlClient.PredictInteractive.g.cs | 29 +- .../LabelStudio.MlClient.TestPredict.g.cs | 29 +- .../Generated/LabelStudio.MlClient.Train.g.cs | 29 +- .../LabelStudio.MlClient.Update.g.cs | 29 +- .../Generated/LabelStudio.MlClient.g.cs | 2 +- ...ent.ApiModelProviderConnectionsUpdate.g.cs | 29 +- ...lStudio.ModelProviderConnectionClient.g.cs | 2 +- ...belStudio.ModelProvidersClient.Create.g.cs | 29 +- ...belStudio.ModelProvidersClient.Delete.g.cs | 29 +- .../LabelStudio.ModelProvidersClient.Get.g.cs | 29 +- ...LabelStudio.ModelProvidersClient.List.g.cs | 29 +- ...vidersClient.ListModelProviderChoices.g.cs | 29 +- ...belStudio.ModelProvidersClient.Update.g.cs | 29 +- .../LabelStudio.ModelProvidersClient.g.cs | 2 +- ....ApiOrganizationsMembershipsListScope.g.cs | 51 + ...stomFunctionLogsRetrieveResponse.Json.g.cs | 92 + ...ctsCustomFunctionLogsRetrieveResponse.g.cs | 18 + ...tsCustomFunctionRetrieveResponse.Json.g.cs | 92 + ...rojectsCustomFunctionRetrieveResponse.g.cs | 55 + ...sCustomFunctionRetrieveResponseStatus.g.cs | 75 + ...cpCustomFunctionRetrieveResponse.Json.g.cs | 92 + ...ectsGcpCustomFunctionRetrieveResponse.g.cs | 55 + ...pCustomFunctionRetrieveResponseStatus.g.cs | 75 + ...CustomFunctionCodeRequestRequest.Json.g.cs | 92 + ...dels.CustomFunctionCodeRequestRequest.g.cs | 44 + .../LabelStudio.Models.DefaultRole.g.cs | 11 + ...s.GCPCustomFunctionUpdateRequest.Json.g.cs | 92 + ...Models.GCPCustomFunctionUpdateRequest.g.cs | 68 + ...Studio.Models.GCSSAExportStorage.Json.g.cs | 92 + ...LabelStudio.Models.GCSSAExportStorage.g.cs | 273 +++ ...Models.GCSSAExportStorageRequest.Json.g.cs | 92 + ...udio.Models.GCSSAExportStorageRequest.g.cs | 233 +++ ...Studio.Models.GCSSAImportStorage.Json.g.cs | 92 + ...LabelStudio.Models.GCSSAImportStorage.g.cs | 295 +++ ...Models.GCSSAImportStorageRequest.Json.g.cs | 92 + ...udio.Models.GCSSAImportStorageRequest.g.cs | 255 +++ ...dio.Models.ImportApiRequestData2.Json.g.cs | 92 + ...elStudio.Models.ImportApiRequestData2.g.cs | 18 + ...s.LabelDistributionStructureDimension.g.cs | 4 +- ...ls.LabelDistributionStructureResponse.g.cs | 4 +- .../LabelStudio.Models.LseOrganization.g.cs | 12 + ...udio.Models.LseOrganizationMemberList.g.cs | 12 + .../LabelStudio.Models.LseProjectParams.g.cs | 8 +- ....LseProjectParamsAnnotatorParams.Json.g.cs | 92 + ...odels.LseProjectParamsAnnotatorParams.g.cs | 18 + ...Studio.Models.LseProjectParamsRequest.g.cs | 8 +- ...jectParamsRequestAnnotatorParams.Json.g.cs | 92 + ...seProjectParamsRequestAnnotatorParams.g.cs | 18 + .../LabelStudio.Models.LseTaskData2.Json.g.cs | 92 + .../LabelStudio.Models.LseTaskData2.g.cs | 18 + ...tudio.Models.LseTaskRequestData2.Json.g.cs | 92 + ...abelStudio.Models.LseTaskRequestData2.g.cs | 18 + ...TaskSerializerForAnnotatorsData2.Json.g.cs | 92 + ...s.LseTaskSerializerForAnnotatorsData2.g.cs | 18 + ...eTaskSerializerForReviewersData2.Json.g.cs | 92 + ...ls.LseTaskSerializerForReviewersData2.g.cs | 18 + ...udio.Models.PatchedDefaultRoleRequest.g.cs | 11 + ...PatchedGCSSAExportStorageRequest.Json.g.cs | 92 + ...dels.PatchedGCSSAExportStorageRequest.g.cs | 232 +++ ...PatchedGCSSAImportStorageRequest.Json.g.cs | 92 + ...dels.PatchedGCSSAImportStorageRequest.g.cs | 254 +++ ...seOrganizationSerializerUpdateRequest.g.cs | 13 + ...odels.PatchedLseTaskRequestData2.Json.g.cs | 92 + ...dio.Models.PatchedLseTaskRequestData2.g.cs | 18 + .../LabelStudio.Models.SamlSettings.g.cs | 79 +- ...LabelStudio.Models.SamlSettingsUpdate.g.cs | 11 + ...udio.Models.SamlSettingsUpdateRequest.g.cs | 11 + .../LabelStudio.Models.ScimSettings.g.cs | 24 +- .../LabelStudio.Organizations2Client.Get.g.cs | 29 +- ...LabelStudio.Organizations2Client.List.g.cs | 29 +- ...tudio.Organizations2Client.ResetToken.g.cs | 29 +- .../LabelStudio.Organizations2Client.g.cs | 2 +- ...abelStudio.OrganizationsClient.Assign.g.cs | 29 +- ...abelStudio.OrganizationsClient.Create.g.cs | 29 +- ...belStudio.OrganizationsClient.Create2.g.cs | 29 +- ...abelStudio.OrganizationsClient.Delete.g.cs | 46 +- ...belStudio.OrganizationsClient.Delete2.g.cs | 29 +- ...belStudio.OrganizationsClient.Delete3.g.cs | 29 +- ...belStudio.OrganizationsClient.Delete4.g.cs | 29 +- .../LabelStudio.OrganizationsClient.Get2.g.cs | 29 +- .../LabelStudio.OrganizationsClient.Get3.g.cs | 29 +- .../LabelStudio.OrganizationsClient.Get4.g.cs | 29 +- ...lStudio.OrganizationsClient.GetImport.g.cs | 29 +- ...dio.OrganizationsClient.GetInviteLink.g.cs | 29 +- ...Studio.OrganizationsClient.GetOptions.g.cs | 29 +- ...abelStudio.OrganizationsClient.Import.g.cs | 29 +- ...LabelStudio.OrganizationsClient.List2.g.cs | 29 +- ...LabelStudio.OrganizationsClient.List3.g.cs | 36 +- ...LabelStudio.OrganizationsClient.List4.g.cs | 29 +- .../LabelStudio.OrganizationsClient.Post.g.cs | 29 +- ...belStudio.OrganizationsClient.Replace.g.cs | 29 +- ...udio.OrganizationsClient.RevokeInvite.g.cs | 29 +- ...lStudio.OrganizationsClient.SendEmail.g.cs | 29 +- ...abelStudio.OrganizationsClient.Update.g.cs | 35 +- ...belStudio.OrganizationsClient.Update2.g.cs | 29 +- ...belStudio.OrganizationsClient.Update3.g.cs | 29 +- ...belStudio.OrganizationsClient.Update4.g.cs | 29 +- ...OrganizationsClient.UpdateDefaultRole.g.cs | 34 +- .../LabelStudio.OrganizationsClient.g.cs | 2 +- .../Generated/LabelStudio.PathBuilder.g.cs | 34 + ...Client.ApiProjectsMembersPausesUpdate.g.cs | 29 +- .../LabelStudio.PausesClient.Create.g.cs | 29 +- .../LabelStudio.PausesClient.Delete.g.cs | 29 +- .../LabelStudio.PausesClient.Get.g.cs | 29 +- .../LabelStudio.PausesClient.List.g.cs | 29 +- .../LabelStudio.PausesClient.Update.g.cs | 29 +- .../Generated/LabelStudio.PausesClient.g.cs | 2 +- ...LabelStudio.Predictions2Client.Create.g.cs | 29 +- ...LabelStudio.Predictions2Client.Delete.g.cs | 29 +- .../LabelStudio.Predictions2Client.Get.g.cs | 29 +- .../LabelStudio.Predictions2Client.List.g.cs | 29 +- ...LabelStudio.Predictions2Client.Update.g.cs | 29 +- .../LabelStudio.Predictions2Client.g.cs | 2 +- ...redictionsClient.ApiPredictionsUpdate.g.cs | 29 +- .../LabelStudio.PredictionsClient.g.cs | 2 +- .../LabelStudio.ProjectRolesClient.Add.g.cs | 29 +- .../LabelStudio.ProjectRolesClient.Get.g.cs | 29 +- .../LabelStudio.ProjectRolesClient.List.g.cs | 29 +- ...LabelStudio.ProjectRolesClient.Remove.g.cs | 29 +- .../LabelStudio.ProjectRolesClient.g.cs | 2 +- ...latesClient.ApiProjectTemplatesUpdate.g.cs | 29 +- ...lStudio.ProjectTemplatesClient.Create.g.cs | 29 +- ...latesClient.CreateProjectFromTemplate.g.cs | 29 +- ...lStudio.ProjectTemplatesClient.Delete.g.cs | 29 +- ...abelStudio.ProjectTemplatesClient.Get.g.cs | 29 +- ...belStudio.ProjectTemplatesClient.List.g.cs | 29 +- ...lStudio.ProjectTemplatesClient.Update.g.cs | 29 +- .../LabelStudio.ProjectTemplatesClient.g.cs | 2 +- .../LabelStudio.Projects2Client.Create.g.cs | 29 +- .../LabelStudio.Projects2Client.Delete.g.cs | 29 +- ...LabelStudio.Projects2Client.Duplicate.g.cs | 29 +- .../LabelStudio.Projects2Client.Get.g.cs | 29 +- ...dio.Projects2Client.ImportPredictions.g.cs | 29 +- ...belStudio.Projects2Client.ImportTasks.g.cs | 29 +- .../LabelStudio.Projects2Client.List.g.cs | 29 +- ...abelStudio.Projects2Client.ListCounts.g.cs | 29 +- ....Projects2Client.ListUniqueAnnotators.g.cs | 29 +- .../LabelStudio.Projects2Client.Update.g.cs | 29 +- ...o.Projects2Client.ValidateLabelConfig.g.cs | 29 +- .../LabelStudio.Projects2Client.g.cs | 2 +- .../LabelStudio.ProjectsClient.Add.g.cs | 29 +- ...tsClient.ApiProjectsReimportsRetrieve.g.cs | 29 +- ...o.ProjectsClient.ApiProjectsTasksList.g.cs | 29 +- ...jectsClient.ApiProjectsValidateCreate.g.cs | 38 +- ...elStudio.ProjectsClient.CheckFunction.g.cs | 29 +- .../LabelStudio.ProjectsClient.Create2.g.cs | 33 +- .../LabelStudio.ProjectsClient.Delete2.g.cs | 52 +- ...lStudio.ProjectsClient.DeployFunction.g.cs | 261 +++ .../LabelStudio.ProjectsClient.Get3.g.cs | 29 +- .../LabelStudio.ProjectsClient.Get4.g.cs | 29 +- ...abelStudio.ProjectsClient.GetFunction.g.cs | 205 ++ ...Studio.ProjectsClient.GetFunctionLogs.g.cs | 226 ++ ...lStudio.ProjectsClient.GetGcpFunction.g.cs | 205 ++ .../LabelStudio.ProjectsClient.GetLambda.g.cs | 29 +- .../LabelStudio.ProjectsClient.List2.g.cs | 29 +- .../LabelStudio.ProjectsClient.Post.g.cs | 29 +- .../LabelStudio.ProjectsClient.Remove.g.cs | 46 +- .../LabelStudio.ProjectsClient.Update2.g.cs | 29 +- ...udio.ProjectsClient.UpdateGcpFunction.g.cs | 273 +++ ...belStudio.ProjectsClient.UpdateLambda.g.cs | 29 +- .../Generated/LabelStudio.ProjectsClient.g.cs | 2 +- ...Prompts2Client.BatchFailedPredictions.g.cs | 29 +- ...tudio.Prompts2Client.BatchPredictions.g.cs | 29 +- ...dio.Prompts2Client.CompatibleProjects.g.cs | 29 +- .../LabelStudio.Prompts2Client.Create.g.cs | 29 +- .../LabelStudio.Prompts2Client.Delete.g.cs | 29 +- .../LabelStudio.Prompts2Client.Get2.g.cs | 29 +- .../LabelStudio.Prompts2Client.List2.g.cs | 29 +- ...abelStudio.Prompts2Client.SubsetTasks.g.cs | 29 +- .../LabelStudio.Prompts2Client.Subsets.g.cs | 29 +- .../LabelStudio.Prompts2Client.Update.g.cs | 29 +- .../Generated/LabelStudio.Prompts2Client.g.cs | 2 +- ...Studio.PromptsClient.ApiPromptsUpdate.g.cs | 29 +- ...romptsClient.ApiPromptsVersionsUpdate.g.cs | 29 +- .../LabelStudio.PromptsClient.Cancel.g.cs | 29 +- ...abelStudio.PromptsClient.CostEstimate.g.cs | 29 +- .../LabelStudio.PromptsClient.Create2.g.cs | 29 +- .../LabelStudio.PromptsClient.Create3.g.cs | 29 +- .../LabelStudio.PromptsClient.Delete2.g.cs | 29 +- .../LabelStudio.PromptsClient.Get.g.cs | 29 +- .../LabelStudio.PromptsClient.Get3.g.cs | 29 +- ...o.PromptsClient.GetDefaultVersionName.g.cs | 29 +- ...Studio.PromptsClient.GetRefinedPrompt.g.cs | 29 +- .../LabelStudio.PromptsClient.List.g.cs | 29 +- .../LabelStudio.PromptsClient.List3.g.cs | 29 +- .../LabelStudio.PromptsClient.List4.g.cs | 29 +- ...abelStudio.PromptsClient.RefinePrompt.g.cs | 29 +- .../LabelStudio.PromptsClient.Update2.g.cs | 29 +- .../Generated/LabelStudio.PromptsClient.g.cs | 2 +- .../Generated/LabelStudio.Security.g.cs | 145 ++ .../LabelStudio.SessionPolicyClient.Get.g.cs | 29 +- ...abelStudio.SessionPolicyClient.Update.g.cs | 29 +- .../LabelStudio.SessionPolicyClient.g.cs | 2 +- .../Generated/LabelStudio.SsoClient.Get.g.cs | 29 +- .../Generated/LabelStudio.SsoClient.Get2.g.cs | 29 +- .../LabelStudio.SsoClient.Reset.g.cs | 29 +- .../LabelStudio.SsoClient.Update.g.cs | 34 +- .../LabelStudio.SsoClient.Update2.g.cs | 29 +- ...lStudio.SsoClient.ValidateMetadataUrl.g.cs | 33 +- .../Generated/LabelStudio.SsoClient.g.cs | 2 +- ...belStudio.StatesClient.CancelBackfill.g.cs | 29 +- ...Studio.StatesClient.ExecuteTransition.g.cs | 29 +- ...Studio.StatesClient.GetBackfillStatus.g.cs | 29 +- ...abelStudio.StatesClient.ListBackfills.g.cs | 29 +- ...LabelStudio.StatesClient.StateHistory.g.cs | 29 +- ...elStudio.StatesClient.TriggerBackfill.g.cs | 29 +- .../Generated/LabelStudio.StatesClient.g.cs | 2 +- ...Studio.StatsClient.AgreementAnnotator.g.cs | 29 +- ...tudio.StatsClient.AgreementAnnotators.g.cs | 29 +- .../LabelStudio.StatsClient.DataFilters.g.cs | 29 +- ...LabelStudio.StatsClient.FinishedTasks.g.cs | 29 +- .../LabelStudio.StatsClient.Iaa.g.cs | 29 +- ...o.StatsClient.LabelDistributionCounts.g.cs | 29 +- ...tatsClient.LabelDistributionStructure.g.cs | 29 +- .../LabelStudio.StatsClient.LeadTime.g.cs | 29 +- ...Client.ModelVersionAnnotatorAgreement.g.cs | 29 +- ...ient.ModelVersionGroundTruthAgreement.g.cs | 29 +- ...lient.ModelVersionPredictionAgreement.g.cs | 29 +- ...abelStudio.StatsClient.TotalAgreement.g.cs | 29 +- .../LabelStudio.StatsClient.UpdateStats.g.cs | 29 +- ....StatsClient.UserGroundTruthAgreement.g.cs | 29 +- ...o.StatsClient.UserPredictionAgreement.g.cs | 29 +- ...belStudio.StatsClient.UserReviewScore.g.cs | 29 +- ...StatsClient.UsersGroundTruthAgreement.g.cs | 29 +- ....StatsClient.UsersPredictionAgreement.g.cs | 29 +- ...elStudio.StatsClient.UsersReviewScore.g.cs | 29 +- .../Generated/LabelStudio.StatsClient.g.cs | 2 +- ...LabelStudio.StorageAzureClient.Create.g.cs | 29 +- ...abelStudio.StorageAzureClient.Create2.g.cs | 29 +- ...LabelStudio.StorageAzureClient.Delete.g.cs | 29 +- ...abelStudio.StorageAzureClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageAzureClient.Get.g.cs | 29 +- .../LabelStudio.StorageAzureClient.Get2.g.cs | 29 +- .../LabelStudio.StorageAzureClient.List.g.cs | 29 +- .../LabelStudio.StorageAzureClient.List2.g.cs | 29 +- .../LabelStudio.StorageAzureClient.Sync.g.cs | 29 +- .../LabelStudio.StorageAzureClient.Sync2.g.cs | 29 +- ...LabelStudio.StorageAzureClient.Update.g.cs | 29 +- ...abelStudio.StorageAzureClient.Update2.g.cs | 29 +- ...belStudio.StorageAzureClient.Validate.g.cs | 29 +- ...elStudio.StorageAzureClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageAzureClient.g.cs | 2 +- ...elStudio.StorageAzureSpiClient.Create.g.cs | 29 +- ...lStudio.StorageAzureSpiClient.Create2.g.cs | 29 +- ...elStudio.StorageAzureSpiClient.Delete.g.cs | 29 +- ...lStudio.StorageAzureSpiClient.Delete2.g.cs | 29 +- ...LabelStudio.StorageAzureSpiClient.Get.g.cs | 29 +- ...abelStudio.StorageAzureSpiClient.Get2.g.cs | 29 +- ...abelStudio.StorageAzureSpiClient.List.g.cs | 29 +- ...belStudio.StorageAzureSpiClient.List2.g.cs | 29 +- ...abelStudio.StorageAzureSpiClient.Sync.g.cs | 29 +- ...belStudio.StorageAzureSpiClient.Sync2.g.cs | 29 +- ...elStudio.StorageAzureSpiClient.Update.g.cs | 29 +- ...lStudio.StorageAzureSpiClient.Update2.g.cs | 29 +- ...Studio.StorageAzureSpiClient.Validate.g.cs | 29 +- ...tudio.StorageAzureSpiClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageAzureSpiClient.g.cs | 2 +- ....StorageClient.ApiDatasetStoragesList.g.cs | 29 +- ...lient.ApiDatasetStoragesTypesRetrieve.g.cs | 29 +- .../LabelStudio.StorageClient.List.g.cs | 29 +- .../LabelStudio.StorageClient.List2.g.cs | 29 +- .../LabelStudio.StorageClient.ListTypes.g.cs | 29 +- .../LabelStudio.StorageClient.ListTypes2.g.cs | 29 +- .../Generated/LabelStudio.StorageClient.g.cs | 2 +- ...o.StorageDatabricksFilesClient.Create.g.cs | 29 +- ....StorageDatabricksFilesClient.Create2.g.cs | 29 +- ...o.StorageDatabricksFilesClient.Delete.g.cs | 29 +- ....StorageDatabricksFilesClient.Delete2.g.cs | 29 +- ...udio.StorageDatabricksFilesClient.Get.g.cs | 29 +- ...dio.StorageDatabricksFilesClient.Get2.g.cs | 29 +- ...dio.StorageDatabricksFilesClient.List.g.cs | 29 +- ...io.StorageDatabricksFilesClient.List2.g.cs | 29 +- ...dio.StorageDatabricksFilesClient.Sync.g.cs | 29 +- ...io.StorageDatabricksFilesClient.Sync2.g.cs | 29 +- ...o.StorageDatabricksFilesClient.Update.g.cs | 29 +- ....StorageDatabricksFilesClient.Update2.g.cs | 29 +- ...StorageDatabricksFilesClient.Validate.g.cs | 29 +- ...torageDatabricksFilesClient.Validate2.g.cs | 29 +- ...elStudio.StorageDatabricksFilesClient.g.cs | 2 +- .../LabelStudio.StorageGcsClient.Create.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Create2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Delete.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Get.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Get2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.List.g.cs | 29 +- .../LabelStudio.StorageGcsClient.List2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Sync.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Sync2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Update.g.cs | 29 +- .../LabelStudio.StorageGcsClient.Update2.g.cs | 29 +- ...LabelStudio.StorageGcsClient.Validate.g.cs | 29 +- ...abelStudio.StorageGcsClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageGcsClient.g.cs | 2 +- ...LabelStudio.StorageGcsSaClient.Create.g.cs | 327 +++ ...abelStudio.StorageGcsSaClient.Create2.g.cs | 337 +++ ...LabelStudio.StorageGcsSaClient.Delete.g.cs | 184 ++ ...abelStudio.StorageGcsSaClient.Delete2.g.cs | 184 ++ .../LabelStudio.StorageGcsSaClient.Get.g.cs | 205 ++ .../LabelStudio.StorageGcsSaClient.Get2.g.cs | 205 ++ .../LabelStudio.StorageGcsSaClient.List.g.cs | 215 ++ .../LabelStudio.StorageGcsSaClient.List2.g.cs | 215 ++ .../LabelStudio.StorageGcsSaClient.Sync.g.cs | 205 ++ .../LabelStudio.StorageGcsSaClient.Sync2.g.cs | 205 ++ ...LabelStudio.StorageGcsSaClient.Update.g.cs | 336 +++ ...abelStudio.StorageGcsSaClient.Update2.g.cs | 346 +++ ...belStudio.StorageGcsSaClient.Validate.g.cs | 306 +++ ...elStudio.StorageGcsSaClient.Validate2.g.cs | 316 +++ .../LabelStudio.StorageGcsSaClient.g.cs | 86 + ...abelStudio.StorageGcsWifClient.Create.g.cs | 29 +- ...belStudio.StorageGcsWifClient.Create2.g.cs | 29 +- ...abelStudio.StorageGcsWifClient.Delete.g.cs | 29 +- ...belStudio.StorageGcsWifClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageGcsWifClient.Get.g.cs | 29 +- .../LabelStudio.StorageGcsWifClient.Get2.g.cs | 29 +- .../LabelStudio.StorageGcsWifClient.List.g.cs | 29 +- ...LabelStudio.StorageGcsWifClient.List2.g.cs | 29 +- .../LabelStudio.StorageGcsWifClient.Sync.g.cs | 29 +- ...LabelStudio.StorageGcsWifClient.Sync2.g.cs | 29 +- ...abelStudio.StorageGcsWifClient.Update.g.cs | 29 +- ...belStudio.StorageGcsWifClient.Update2.g.cs | 29 +- ...elStudio.StorageGcsWifClient.Validate.g.cs | 29 +- ...lStudio.StorageGcsWifClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageGcsWifClient.g.cs | 2 +- ...LabelStudio.StorageLocalClient.Create.g.cs | 29 +- ...abelStudio.StorageLocalClient.Create2.g.cs | 29 +- ...LabelStudio.StorageLocalClient.Delete.g.cs | 29 +- ...abelStudio.StorageLocalClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageLocalClient.Get.g.cs | 29 +- .../LabelStudio.StorageLocalClient.Get2.g.cs | 29 +- .../LabelStudio.StorageLocalClient.List.g.cs | 29 +- .../LabelStudio.StorageLocalClient.List2.g.cs | 29 +- .../LabelStudio.StorageLocalClient.Sync.g.cs | 29 +- .../LabelStudio.StorageLocalClient.Sync2.g.cs | 29 +- ...LabelStudio.StorageLocalClient.Update.g.cs | 29 +- ...abelStudio.StorageLocalClient.Update2.g.cs | 29 +- ...belStudio.StorageLocalClient.Validate.g.cs | 29 +- ...elStudio.StorageLocalClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageLocalClient.g.cs | 2 +- ...LabelStudio.StorageRedisClient.Create.g.cs | 29 +- ...abelStudio.StorageRedisClient.Create2.g.cs | 29 +- ...LabelStudio.StorageRedisClient.Delete.g.cs | 29 +- ...abelStudio.StorageRedisClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageRedisClient.Get.g.cs | 29 +- .../LabelStudio.StorageRedisClient.Get2.g.cs | 29 +- .../LabelStudio.StorageRedisClient.List.g.cs | 29 +- .../LabelStudio.StorageRedisClient.List2.g.cs | 29 +- .../LabelStudio.StorageRedisClient.Sync.g.cs | 29 +- .../LabelStudio.StorageRedisClient.Sync2.g.cs | 29 +- ...LabelStudio.StorageRedisClient.Update.g.cs | 29 +- ...abelStudio.StorageRedisClient.Update2.g.cs | 29 +- ...belStudio.StorageRedisClient.Validate.g.cs | 29 +- ...elStudio.StorageRedisClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageRedisClient.g.cs | 2 +- .../LabelStudio.StorageS3Client.Create.g.cs | 29 +- .../LabelStudio.StorageS3Client.Create2.g.cs | 29 +- .../LabelStudio.StorageS3Client.Delete.g.cs | 29 +- .../LabelStudio.StorageS3Client.Delete2.g.cs | 29 +- .../LabelStudio.StorageS3Client.Get.g.cs | 29 +- .../LabelStudio.StorageS3Client.Get2.g.cs | 29 +- .../LabelStudio.StorageS3Client.List.g.cs | 29 +- .../LabelStudio.StorageS3Client.List2.g.cs | 29 +- .../LabelStudio.StorageS3Client.Sync.g.cs | 29 +- .../LabelStudio.StorageS3Client.Sync2.g.cs | 29 +- .../LabelStudio.StorageS3Client.Update.g.cs | 29 +- .../LabelStudio.StorageS3Client.Update2.g.cs | 29 +- .../LabelStudio.StorageS3Client.Validate.g.cs | 29 +- ...LabelStudio.StorageS3Client.Validate2.g.cs | 29 +- .../LabelStudio.StorageS3Client.g.cs | 2 +- ...belStudio.StorageS3RolesClient.Create.g.cs | 29 +- ...elStudio.StorageS3RolesClient.Create2.g.cs | 29 +- ...belStudio.StorageS3RolesClient.Delete.g.cs | 29 +- ...elStudio.StorageS3RolesClient.Delete2.g.cs | 29 +- .../LabelStudio.StorageS3RolesClient.Get.g.cs | 29 +- ...LabelStudio.StorageS3RolesClient.Get2.g.cs | 29 +- ...LabelStudio.StorageS3RolesClient.List.g.cs | 29 +- ...abelStudio.StorageS3RolesClient.List2.g.cs | 29 +- ...LabelStudio.StorageS3RolesClient.Sync.g.cs | 29 +- ...abelStudio.StorageS3RolesClient.Sync2.g.cs | 29 +- ...belStudio.StorageS3RolesClient.Update.g.cs | 29 +- ...elStudio.StorageS3RolesClient.Update2.g.cs | 29 +- ...lStudio.StorageS3RolesClient.Validate.g.cs | 29 +- ...Studio.StorageS3RolesClient.Validate2.g.cs | 29 +- .../LabelStudio.StorageS3RolesClient.g.cs | 2 +- .../LabelStudio.Tasks2Client.Create.g.cs | 29 +- .../LabelStudio.Tasks2Client.CreateEvent.g.cs | 29 +- ...lStudio.Tasks2Client.CreateManyStatus.g.cs | 29 +- .../LabelStudio.Tasks2Client.Delete2.g.cs | 29 +- ...belStudio.Tasks2Client.DeleteAllTasks.g.cs | 29 +- .../LabelStudio.Tasks2Client.Get.g.cs | 29 +- .../LabelStudio.Tasks2Client.List2.g.cs | 29 +- .../LabelStudio.Tasks2Client.Update2.g.cs | 29 +- .../Generated/LabelStudio.Tasks2Client.g.cs | 2 +- ...TasksClient.ApiTasksAgreementRetrieve.g.cs | 29 +- .../LabelStudio.TasksClient.Assign.g.cs | 29 +- .../LabelStudio.TasksClient.BulkAssign.g.cs | 29 +- .../LabelStudio.TasksClient.Delete.g.cs | 29 +- .../LabelStudio.TasksClient.List.g.cs | 29 +- .../LabelStudio.TasksClient.Update.g.cs | 29 +- .../Generated/LabelStudio.TasksClient.g.cs | 2 +- .../LabelStudio.TokensClient.Blacklist.g.cs | 29 +- .../LabelStudio.TokensClient.Create.g.cs | 29 +- .../LabelStudio.TokensClient.List.g.cs | 29 +- .../LabelStudio.TokensClient.Refresh.g.cs | 29 +- .../LabelStudio.TokensClient.Rotate.g.cs | 29 +- .../Generated/LabelStudio.TokensClient.g.cs | 2 +- .../LabelStudio.UsersClient.Create.g.cs | 29 +- .../LabelStudio.UsersClient.Delete.g.cs | 29 +- .../LabelStudio.UsersClient.Get.g.cs | 29 +- ...abelStudio.UsersClient.GetCurrentUser.g.cs | 29 +- .../LabelStudio.UsersClient.GetHotkeys.g.cs | 29 +- .../LabelStudio.UsersClient.GetToken.g.cs | 29 +- .../LabelStudio.UsersClient.List.g.cs | 29 +- .../LabelStudio.UsersClient.ResetToken.g.cs | 29 +- .../LabelStudio.UsersClient.Update.g.cs | 29 +- ...lStudio.UsersClient.UpdateCurrentUser.g.cs | 29 +- ...LabelStudio.UsersClient.UpdateHotkeys.g.cs | 29 +- .../LabelStudio.UsersClient.Whoami.g.cs | 29 +- .../Generated/LabelStudio.UsersClient.g.cs | 2 +- .../LabelStudio.VersionsClient.Get.g.cs | 38 +- .../Generated/LabelStudio.VersionsClient.g.cs | 2 +- .../LabelStudio.ViewsClient.Create2.g.cs | 29 +- .../LabelStudio.ViewsClient.Delete.g.cs | 29 +- .../LabelStudio.ViewsClient.DeleteAll.g.cs | 29 +- .../LabelStudio.ViewsClient.Get.g.cs | 29 +- .../LabelStudio.ViewsClient.List2.g.cs | 29 +- .../LabelStudio.ViewsClient.Update.g.cs | 29 +- .../LabelStudio.ViewsClient.UpdateOrder.g.cs | 29 +- .../Generated/LabelStudio.ViewsClient.g.cs | 2 +- .../LabelStudio.Webhooks2Client.Create.g.cs | 29 +- .../LabelStudio.Webhooks2Client.Delete.g.cs | 29 +- .../LabelStudio.Webhooks2Client.Get.g.cs | 29 +- .../LabelStudio.Webhooks2Client.Info.g.cs | 38 +- .../LabelStudio.Webhooks2Client.List.g.cs | 29 +- .../LabelStudio.Webhooks2Client.Update.g.cs | 29 +- .../LabelStudio.Webhooks2Client.g.cs | 2 +- ...udio.WebhooksClient.ApiWebhooksUpdate.g.cs | 29 +- .../Generated/LabelStudio.WebhooksClient.g.cs | 2 +- .../LabelStudio.Workspaces2Client.Create.g.cs | 29 +- .../LabelStudio.Workspaces2Client.Delete.g.cs | 29 +- .../LabelStudio.Workspaces2Client.Get.g.cs | 29 +- .../LabelStudio.Workspaces2Client.List.g.cs | 29 +- .../LabelStudio.Workspaces2Client.Update.g.cs | 29 +- .../LabelStudio.Workspaces2Client.g.cs | 2 +- .../LabelStudio.WorkspacesClient.Add.g.cs | 29 +- .../LabelStudio.WorkspacesClient.Create2.g.cs | 29 +- .../LabelStudio.WorkspacesClient.Delete2.g.cs | 46 +- .../LabelStudio.WorkspacesClient.Delete3.g.cs | 74 +- .../LabelStudio.WorkspacesClient.List2.g.cs | 29 +- .../LabelStudio.WorkspacesClient.List3.g.cs | 29 +- .../LabelStudio.WorkspacesClient.List4.g.cs | 29 +- .../LabelStudio.WorkspacesClient.Post.g.cs | 29 +- .../LabelStudio.WorkspacesClient.Remove.g.cs | 46 +- .../LabelStudio.WorkspacesClient.g.cs | 2 +- src/libs/LabelStudio/openapi.yaml | 1846 +++++++++++++++-- 662 files changed, 26049 insertions(+), 1882 deletions(-) create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.DeployFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunctionLogs.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetGcpFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.UpdateGcpFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScope.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullable.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusNullable.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullable.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiOrganizationsMembershipsListScope.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.DeployFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunctionLogs.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetGcpFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateGcpFunction.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Security.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate2.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.g.cs diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs index adb4415..997ac1b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ActionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref global::LabelStudio.ApiDmActionsCreateId id, @@ -51,6 +70,12 @@ partial void ProcessCreateResponse( view: ref view, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/actions/", baseUri: HttpClient.BaseAddress); @@ -58,7 +83,7 @@ partial void ProcessCreateResponse( .AddRequiredParameter("id", id.ToValueString()) .AddRequiredParameter("project", project.ToString()!) .AddOptionalParameter("view", view?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -68,7 +93,7 @@ partial void ProcessCreateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs index 9e20c08..702f2df 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ActionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int project); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/actions/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs index da338e4..e5ed9fb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActionsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ActionsClient : global::LabelStudio.IActionsClient, /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs index 13dda7d..3c49590 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ActivityLogsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? endDate, @@ -91,6 +110,12 @@ partial void ProcessListResponseContent( user: ref user, workspace: ref workspace); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/activity-logs/", baseUri: HttpClient.BaseAddress); @@ -105,7 +130,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("start_date", startDate) .AddOptionalParameter("user", user?.ToString()) .AddOptionalParameter("workspace", workspace?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -115,7 +140,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs index d01661e..a8bc59b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ActivityLogsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ActivityLogsClient : global::LabelStudio.IActivityLo /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs index d3c6813..6c5c526 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsKpisRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsKpisRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsKpisRetrieveSecurityRequirement0, + }; partial void PrepareApiAnalyticsKpisRetrieveArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareApiAnalyticsKpisRetrieveRequest( @@ -33,9 +52,15 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent( PrepareApiAnalyticsKpisRetrieveArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsKpisRetrieveSecurityRequirements, + operationName: "ApiAnalyticsKpisRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/analytics/kpis/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessApiAnalyticsKpisRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs index 34870af..3e97dee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsKpisRetrieve2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsKpisRetrieve2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsKpisRetrieve2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsKpisRetrieve2SecurityRequirement0, + }; partial void PrepareApiAnalyticsKpisRetrieve2Arguments( global::System.Net.Http.HttpClient httpClient, ref global::System.DateTime? end, @@ -78,6 +97,12 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( start: ref start, tz: ref tz); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsKpisRetrieve2SecurityRequirements, + operationName: "ApiAnalyticsKpisRetrieve2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/analytics/kpis/{kpiKey}", baseUri: HttpClient.BaseAddress); @@ -90,7 +115,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( .AddOptionalParameter("segment_by_user", segmentByUser?.ToString().ToLowerInvariant()) .AddOptionalParameter("start", start?.ToString("yyyy-MM-ddTHH:mm:ssZ")) .AddRequiredParameter("tz", tz) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -100,7 +125,7 @@ partial void ProcessApiAnalyticsKpisRetrieve2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs index 20ab45d..ff7ca5c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsCreateSecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AnalyticsViewRequest request); @@ -51,9 +70,15 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsCreateSecurityRequirements, + operationName: "ApiAnalyticsViewsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/analytics/views/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -63,7 +88,7 @@ partial void ProcessApiAnalyticsViewsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsDestroy.g.cs index 266c690..2ed99cb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsDestroySecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid uuid); @@ -43,9 +62,15 @@ partial void ProcessApiAnalyticsViewsDestroyResponse( httpClient: HttpClient, uuid: ref uuid); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsDestroySecurityRequirements, + operationName: "ApiAnalyticsViewsDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/analytics/views/{uuid}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -55,7 +80,7 @@ partial void ProcessApiAnalyticsViewsDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs index d8b9a30..7a80680 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsListSecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -48,12 +67,18 @@ partial void ProcessApiAnalyticsViewsListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsListSecurityRequirements, + operationName: "ApiAnalyticsViewsListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/analytics/views/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessApiAnalyticsViewsListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs index 1124333..3cb2169 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsPartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsPartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsPartialUpdateSecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsPartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid uuid, @@ -56,9 +75,15 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( uuid: ref uuid, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsPartialUpdateSecurityRequirements, + operationName: "ApiAnalyticsViewsPartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/analytics/views/{uuid}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -68,7 +93,7 @@ partial void ProcessApiAnalyticsViewsPartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs index 20dd208..55c413b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsRetrieveSecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid uuid); @@ -48,9 +67,15 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent( httpClient: HttpClient, uuid: ref uuid); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsRetrieveSecurityRequirements, + operationName: "ApiAnalyticsViewsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/analytics/views/{uuid}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -60,7 +85,7 @@ partial void ProcessApiAnalyticsViewsRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs index 360a1c2..0b80cb5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.ApiAnalyticsViewsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnalyticsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnalyticsViewsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnalyticsViewsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnalyticsViewsUpdateSecurityRequirement0, + }; partial void PrepareApiAnalyticsViewsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref global::System.Guid uuid, @@ -56,9 +75,15 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( uuid: ref uuid, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnalyticsViewsUpdateSecurityRequirements, + operationName: "ApiAnalyticsViewsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/analytics/views/{uuid}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -68,7 +93,7 @@ partial void ProcessApiAnalyticsViewsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs index 3e003be..3db4060 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnalyticsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class AnalyticsClient : global::LabelStudio.IAnalyticsClie /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs index 70eeadd..ae2d156 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationHistoryClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int? annotation, @@ -54,6 +73,12 @@ partial void ProcessDeleteResponseContent( project: ref project, task: ref task); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotation-history/", baseUri: HttpClient.BaseAddress); @@ -61,7 +86,7 @@ partial void ProcessDeleteResponseContent( .AddOptionalParameter("annotation", annotation?.ToString()) .AddOptionalParameter("project", project?.ToString()) .AddOptionalParameter("task", task?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -71,7 +96,7 @@ partial void ProcessDeleteResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs index a207607..605345d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationHistoryClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? annotation, @@ -49,13 +68,19 @@ partial void ProcessListResponseContent( annotation: ref annotation, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotation-history/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("annotation", annotation?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs index ab9b323..b181b5e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.ListForProject.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationHistoryClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListForProjectSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListForProjectSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListForProjectSecurityRequirement0, + }; partial void PrepareListForProjectArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,13 +73,19 @@ partial void ProcessListForProjectResponseContent( page: ref page, pageSize: ref pageSize); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListForProjectSecurityRequirements, + operationName: "ListForProjectAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/annotation-history/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -70,7 +95,7 @@ partial void ProcessListForProjectResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs index a9fbd5a..c748eb6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.Retrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationHistoryClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RetrieveSecurityRequirement0, + }; partial void PrepareRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessRetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RetrieveSecurityRequirements, + operationName: "RetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotation-history/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs index f724c20..9c8c7dc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationHistoryClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class AnnotationHistoryClient : global::LabelStudio.IAnnot /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs index 31ce3b7..826fec8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviews2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref bool? asyncPostprocess, @@ -52,12 +71,18 @@ partial void ProcessCreateResponseContent( asyncPostprocess: ref asyncPostprocess, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotation-reviews/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("async_postprocess", asyncPostprocess?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Delete.g.cs index bab5cb7..577ef27 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviews2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotation-reviews/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs index 0a386e2..5f0c281 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviews2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotation-reviews/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs index 43091f9..eec27cd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviews2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? annotation, @@ -54,6 +73,12 @@ partial void ProcessListResponseContent( annotationTaskProject: ref annotationTaskProject, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotation-reviews/", baseUri: HttpClient.BaseAddress); @@ -61,7 +86,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("annotation", annotation?.ToString()) .AddOptionalParameter("annotation__task__project", annotationTaskProject?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -71,7 +96,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs index 0d80651..7605328 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviews2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotation-reviews/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs index 6400cb8..e6135f1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviews2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class AnnotationReviews2Client : global::LabelStudio.IAnno /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs index bff32d4..c6c9a93 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.ApiAnnotationReviewsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationReviewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiAnnotationReviewsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiAnnotationReviewsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiAnnotationReviewsUpdateSecurityRequirement0, + }; partial void PrepareApiAnnotationReviewsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiAnnotationReviewsUpdateSecurityRequirements, + operationName: "ApiAnnotationReviewsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotation-reviews/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -64,7 +89,7 @@ partial void ProcessApiAnnotationReviewsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs index d520914..999c58c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationReviewsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class AnnotationReviewsClient : global::LabelStudio.IAnnot /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs index 19d18db..89089e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -59,9 +78,15 @@ partial void ProcessCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/annotations/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -71,7 +96,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs index c40a88a..0101e8e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.CreateBulk.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateBulkSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateBulkSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateBulkSecurityRequirement0, + }; partial void PrepareCreateBulkArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AnnotationBulkSerializerWithSelectedItemsRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateBulkResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateBulkSecurityRequirements, + operationName: "CreateBulkAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotations/bulk/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateBulkResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Delete.g.cs index 9a8e249..7997ed8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotations/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs index 4a436f0..d2034d4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.DeleteBulk.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteBulkSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteBulkSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteBulkSecurityRequirement0, + }; partial void PrepareDeleteBulkArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AnnotationBulkDeleteRequest request); @@ -41,9 +60,15 @@ partial void ProcessDeleteBulkResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteBulkSecurityRequirements, + operationName: "DeleteBulkAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/annotations/bulk-delete/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessDeleteBulkResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs index 7d22d81..5d37ad4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotations/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs index 53076a9..4165d2f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -43,12 +62,18 @@ partial void ProcessListResponseContent( id: ref id, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/annotations/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -58,7 +83,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs index 188a0bc..3755fc2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AnnotationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/annotations/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs index 6c222ac..c2f0d9b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AnnotationsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class AnnotationsClient : global::LabelStudio.IAnnotations /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.Logs.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.Logs.g.cs index 090bf5e..00f67cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.Logs.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.Logs.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class AwsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_LogsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_LogsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_LogsSecurityRequirement0, + }; partial void PrepareLogsArguments( global::System.Net.Http.HttpClient httpClient, ref string? endDate, @@ -61,6 +80,12 @@ partial void ProcessLogsResponseContent( limit: ref limit, startDate: ref startDate); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LogsSecurityRequirements, + operationName: "LogsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/aws-custom-function-logs", baseUri: HttpClient.BaseAddress); @@ -68,7 +93,7 @@ partial void ProcessLogsResponseContent( .AddOptionalParameter("end_date", endDate) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("start_date", startDate) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -78,7 +103,7 @@ partial void ProcessLogsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs index 2ba060f..b410e81 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.AwsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class AwsClient : global::LabelStudio.IAwsClient, global:: /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs index 2c92158..8751c8f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.Info.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class BillingClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_InfoSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_InfoSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_InfoSecurityRequirement0, + }; partial void PrepareInfoArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareInfoRequest( @@ -39,9 +58,15 @@ partial void ProcessInfoResponseContent( PrepareInfoArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_InfoSecurityRequirements, + operationName: "InfoAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/billing/info", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessInfoResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs index 9d3af94..5f96bfb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BillingClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class BillingClient : global::LabelStudio.IBillingClient, /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs index 8a239c6..ac22e5c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Blueprints2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.BlueprintRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/blueprints/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Delete.g.cs index 637ec3f..ac84eb3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Blueprints2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/blueprints/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs index 4e9a40d..6a0ed59 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Blueprints2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/blueprints/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs index 0f7e5ee..ff732b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Blueprints2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Blueprints2Client : global::LabelStudio.IBlueprints2 /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.ApiBlueprintsCreateProjectRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.ApiBlueprintsCreateProjectRetrieve.g.cs index d2fcff3..911c9f2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.ApiBlueprintsCreateProjectRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.ApiBlueprintsCreateProjectRetrieve.g.cs @@ -5,6 +5,19 @@ namespace LabelStudio { public partial class BlueprintsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiBlueprintsCreateProjectRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiBlueprintsCreateProjectRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiBlueprintsCreateProjectRetrieveSecurityRequirement0, + }; partial void PrepareApiBlueprintsCreateProjectRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref string shareId); @@ -33,9 +46,15 @@ partial void ProcessApiBlueprintsCreateProjectRetrieveResponse( httpClient: HttpClient, shareId: ref shareId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiBlueprintsCreateProjectRetrieveSecurityRequirements, + operationName: "ApiBlueprintsCreateProjectRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/blueprints/{shareId}/create-project", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,22 +64,6 @@ partial void ProcessApiBlueprintsCreateProjectRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - PrepareRequest( client: HttpClient, request: __httpRequest); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs index 9a7fd16..6bc861a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.BlueprintsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class BlueprintsClient : global::LabelStudio.IBlueprintsCl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs index d756e06..a749910 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref bool? expandCreatedBy, @@ -52,12 +71,18 @@ partial void ProcessCreateResponseContent( expandCreatedBy: ref expandCreatedBy, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/comments/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Delete.g.cs index 84d60de..b9f7f5f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref bool? expandCreatedBy, @@ -44,12 +63,18 @@ partial void ProcessDeleteResponse( expandCreatedBy: ref expandCreatedBy, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/comments/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -59,7 +84,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Export.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Export.g.cs index 79c558e..f736c86 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Export.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Export.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ExportSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ExportSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ExportSecurityRequirement0, + }; partial void PrepareExportArguments( global::System.Net.Http.HttpClient httpClient, ref int? annotation, @@ -71,6 +90,12 @@ partial void ProcessExportResponseContent( projects: ref projects, tz: ref tz); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ExportSecurityRequirements, + operationName: "ExportAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/comments/export/", baseUri: HttpClient.BaseAddress); @@ -81,7 +106,7 @@ partial void ProcessExportResponseContent( .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) .AddOptionalParameter("projects", projects) .AddOptionalParameter("tz", tz) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -91,7 +116,7 @@ partial void ProcessExportResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs index 179bb6f..cd4346f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref bool? expandCreatedBy, @@ -49,12 +68,18 @@ partial void ProcessGetResponseContent( expandCreatedBy: ref expandCreatedBy, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/comments/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs index f39acf6..2a1ac47 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? annotation, @@ -71,6 +90,12 @@ partial void ProcessListResponseContent( ordering: ref ordering, projects: ref projects); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/comments/", baseUri: HttpClient.BaseAddress); @@ -81,7 +106,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) .AddOptionalParameter("ordering", ordering) .AddOptionalParameter("projects", projects) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -91,7 +116,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs index 74619c9..34f5b23 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Comments2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref bool? expandCreatedBy, @@ -57,12 +76,18 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/comments/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -72,7 +97,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs index 1586a8e..d1ebde9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Comments2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Comments2Client : global::LabelStudio.IComments2Clie /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs index 20d415b..ba7f44b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.ApiCommentsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class CommentsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiCommentsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiCommentsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiCommentsUpdateSecurityRequirement0, + }; partial void PrepareApiCommentsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref bool? expandCreatedBy, @@ -57,12 +76,18 @@ partial void ProcessApiCommentsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiCommentsUpdateSecurityRequirements, + operationName: "ApiCommentsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/comments/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("expand_created_by", expandCreatedBy?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -72,7 +97,7 @@ partial void ProcessApiCommentsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs index 3ece956..bf8e5b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.CommentsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class CommentsClient : global::LabelStudio.ICommentsClient /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs index c40b86f..4f0cbd0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsColumnsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataExplorerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsColumnsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsColumnsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsColumnsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetsColumnsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset); @@ -33,12 +52,18 @@ partial void ProcessApiDatasetsColumnsRetrieveResponse( httpClient: HttpClient, dataset: ref dataset); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsColumnsRetrieveSecurityRequirements, + operationName: "ApiDatasetsColumnsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/columns", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dataset", dataset?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -48,7 +73,7 @@ partial void ProcessApiDatasetsColumnsRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs index 234897e..99ff893 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsImportCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataExplorerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsImportCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsImportCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsImportCreateSecurityRequirement0, + }; partial void PrepareApiDatasetsImportCreateArguments( global::System.Net.Http.HttpClient httpClient, object? additionalFilters, @@ -59,6 +78,12 @@ partial void ProcessApiDatasetsImportCreateResponse( project: ref project, view: ref view); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsImportCreateSecurityRequirements, + operationName: "ApiDatasetsImportCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/import", baseUri: HttpClient.BaseAddress); @@ -69,7 +94,7 @@ partial void ProcessApiDatasetsImportCreateResponse( .AddOptionalParameter("included", included?.ToString()) .AddOptionalParameter("project", project?.ToString()) .AddOptionalParameter("view", view?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -79,7 +104,7 @@ partial void ProcessApiDatasetsImportCreateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs index a8e81ff..e142e46 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksMetadataRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataExplorerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsTasksMetadataRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsTasksMetadataRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsTasksMetadataRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetsTasksMetadataRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref string? candidateTaskId, @@ -44,6 +63,12 @@ partial void ProcessApiDatasetsTasksMetadataRetrieveResponse( dataset: ref dataset, vectordbId: ref vectordbId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsTasksMetadataRetrieveSecurityRequirements, + operationName: "ApiDatasetsTasksMetadataRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/tasks/metadata", baseUri: HttpClient.BaseAddress); @@ -51,7 +76,7 @@ partial void ProcessApiDatasetsTasksMetadataRetrieveResponse( .AddOptionalParameter("candidate_task_id", candidateTaskId) .AddOptionalParameter("dataset", dataset?.ToString()) .AddOptionalParameter("vectordb_id", vectordbId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessApiDatasetsTasksMetadataRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs index e0723d5..95add12 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.ApiDatasetsTasksRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataExplorerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsTasksRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsTasksRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsTasksRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetsTasksRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset, @@ -64,6 +83,12 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( pageSize: ref pageSize, view: ref view); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsTasksRetrieveSecurityRequirements, + operationName: "ApiDatasetsTasksRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/tasks", baseUri: HttpClient.BaseAddress); @@ -74,7 +99,7 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("view", view?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -84,7 +109,7 @@ partial void ProcessApiDatasetsTasksRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs index 1421696..d0baef2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataExplorerClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DataExplorerClient : global::LabelStudio.IDataExplor /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmActionsFormRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmActionsFormRetrieve.g.cs index 4ac2827..ba9efaa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmActionsFormRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmActionsFormRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataManagerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDmActionsFormRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDmActionsFormRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDmActionsFormRetrieveSecurityRequirement0, + }; partial void PrepareApiDmActionsFormRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref string actionId, @@ -43,12 +62,18 @@ partial void ProcessApiDmActionsFormRetrieveResponseContent( actionId: ref actionId, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDmActionsFormRetrieveSecurityRequirements, + operationName: "ApiDmActionsFormRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dm/actions/{actionId}/form/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -58,7 +83,7 @@ partial void ProcessApiDmActionsFormRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmProjectRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmProjectRetrieve.g.cs index e1c7aca..786e06a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmProjectRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmProjectRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataManagerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDmProjectRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDmProjectRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDmProjectRetrieveSecurityRequirement0, + }; partial void PrepareApiDmProjectRetrieveArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareApiDmProjectRetrieveRequest( @@ -28,9 +47,15 @@ partial void ProcessApiDmProjectRetrieveResponse( PrepareApiDmProjectRetrieveArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDmProjectRetrieveSecurityRequirements, + operationName: "ApiDmProjectRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/project/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -40,7 +65,7 @@ partial void ProcessApiDmProjectRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs index b0de1b5..882c4b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.ApiDmViewsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DataManagerClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDmViewsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDmViewsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDmViewsUpdateSecurityRequirement0, + }; partial void PrepareApiDmViewsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessApiDmViewsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDmViewsUpdateSecurityRequirements, + operationName: "ApiDmViewsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dm/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -58,7 +83,7 @@ partial void ProcessApiDmViewsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs index d922955..b96bda9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DataManagerClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DataManagerClient : global::LabelStudio.IDataManager /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs index cbadb68..9e693f6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCheckForRecordsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureCheckForRecordsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureCheckForRecordsCreateSecurityRequirements, + operationName: "ApiDatasetStoragesAzureCheckForRecordsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/azure/check-for-records/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesAzureCheckForRecordsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs index 5592c5e..1732d3b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureColumnsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureColumnsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesAzureColumnsRetrieveResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureColumnsRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesAzureColumnsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/azure/{id}/columns/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesAzureColumnsRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs index 4307c23..ef4ba55 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureCreateSecurityRequirements, + operationName: "ApiDatasetStoragesAzureCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/azure/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesAzureCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs index 84920b9..7b917b6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureDestroySecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesAzureDestroyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureDestroySecurityRequirements, + operationName: "ApiDatasetStoragesAzureDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesAzureDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs index 6230c81..034d993 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureListSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureListArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset, @@ -43,13 +62,19 @@ partial void ProcessApiDatasetStoragesAzureListResponseContent( dataset: ref dataset, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureListSecurityRequirements, + operationName: "ApiDatasetStoragesAzureListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/azure/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dataset", dataset?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessApiDatasetStoragesAzureListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs index 0c5da57..fc7b703 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzurePartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzurePartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzurePartialUpdateSecurityRequirements, + operationName: "ApiDatasetStoragesAzurePartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesAzurePartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs index a324cf5..d05e87b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesAzureRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/azure/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessApiDatasetStoragesAzureRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs index 83bc0dd..e5e0986 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureSyncCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureSyncCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureSyncCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureSyncCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureSyncCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureSyncCreateSecurityRequirements, + operationName: "ApiDatasetStoragesAzureSyncCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/azure/{id}/sync/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesAzureSyncCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs index ed61375..9129ce6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.ApiDatasetStoragesAzureValidateCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesAzureValidateCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesAzureValidateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesAzureValidateCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesAzureValidateCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesAzureValidateCreateSecurityRequirements, + operationName: "ApiDatasetStoragesAzureValidateCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/azure/validate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesAzureValidateCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs index 422e7a9..101490b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageAzureClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DatasetStorageAzureClient : global::LabelStudio.IDat /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs index d9a27e3..01b1d26 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCheckForRecordsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsCheckForRecordsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsCheckForRecordsCreateSecurityRequirements, + operationName: "ApiDatasetStoragesGcsCheckForRecordsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/gcs/check-for-records/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesGcsCheckForRecordsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs index 0a8e62c..3a09b2e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsColumnsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsColumnsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesGcsColumnsRetrieveResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsColumnsRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesGcsColumnsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/gcs/{id}/columns/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesGcsColumnsRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs index 4ea53a8..735689b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsCreateSecurityRequirements, + operationName: "ApiDatasetStoragesGcsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/gcs/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesGcsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs index 27ad31f..969744f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsDestroySecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesGcsDestroyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsDestroySecurityRequirements, + operationName: "ApiDatasetStoragesGcsDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesGcsDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs index 816b921..67ab779 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsListSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsListArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset, @@ -43,13 +62,19 @@ partial void ProcessApiDatasetStoragesGcsListResponseContent( dataset: ref dataset, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsListSecurityRequirements, + operationName: "ApiDatasetStoragesGcsListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/gcs/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dataset", dataset?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessApiDatasetStoragesGcsListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs index b64d0d2..d80fbec 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsPartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsPartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsPartialUpdateSecurityRequirements, + operationName: "ApiDatasetStoragesGcsPartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesGcsPartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs index c5ae18d..157a9cd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesGcsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/gcs/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessApiDatasetStoragesGcsRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs index 0c533a7..7947648 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsSyncCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsSyncCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsSyncCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsSyncCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsSyncCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsSyncCreateSecurityRequirements, + operationName: "ApiDatasetStoragesGcsSyncCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/gcs/{id}/sync/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesGcsSyncCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs index 25e09c7..33d74ca 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.ApiDatasetStoragesGcsValidateCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesGcsValidateCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesGcsValidateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesGcsValidateCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesGcsValidateCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSDatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesGcsValidateCreateSecurityRequirements, + operationName: "ApiDatasetStoragesGcsValidateCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/gcs/validate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesGcsValidateCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs index a7f3283..a80028a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageGcsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DatasetStorageGcsClient : global::LabelStudio.IDatas /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs index b477f7f..99d912d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3CheckForRecordsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3CheckForRecordsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.S3DatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3CheckForRecordsCreateSecurityRequirements, + operationName: "ApiDatasetStoragesS3CheckForRecordsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/s3/check-for-records/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesS3CheckForRecordsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs index 7bea655..38cf296 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ColumnsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3ColumnsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesS3ColumnsRetrieveResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3ColumnsRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesS3ColumnsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/s3/{id}/columns/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesS3ColumnsRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs index f727b99..2962c3e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3CreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3CreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.S3DatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3CreateSecurityRequirements, + operationName: "ApiDatasetStoragesS3CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/s3/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesS3CreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs index 4db6fd6..5f7ff6e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Destroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3DestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3DestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3DestroySecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3DestroyArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetStoragesS3DestroyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3DestroySecurityRequirements, + operationName: "ApiDatasetStoragesS3DestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetStoragesS3DestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs index 2f1bec6..d048c31 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3ListSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3ListArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset, @@ -43,13 +62,19 @@ partial void ProcessApiDatasetStoragesS3ListResponseContent( dataset: ref dataset, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3ListSecurityRequirements, + operationName: "ApiDatasetStoragesS3ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/s3/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dataset", dataset?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessApiDatasetStoragesS3ListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs index e3a091f..d87fac9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3PartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3PartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3PartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3PartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3PartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3PartialUpdateSecurityRequirements, + operationName: "ApiDatasetStoragesS3PartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesS3PartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs index cc4c96b..791f618 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3Retrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3RetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3RetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3RetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3RetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3RetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesS3RetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/s3/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessApiDatasetStoragesS3RetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs index cda3abc..533b7d8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3SyncCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3SyncCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3SyncCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3SyncCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3SyncCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3SyncCreateSecurityRequirements, + operationName: "ApiDatasetStoragesS3SyncCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dataset-storages/s3/{id}/sync/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetStoragesS3SyncCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs index 776e316..43447ec 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.ApiDatasetStoragesS3ValidateCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetStorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesS3ValidateCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesS3ValidateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesS3ValidateCreateSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesS3ValidateCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.S3DatasetStorageRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesS3ValidateCreateSecurityRequirements, + operationName: "ApiDatasetStoragesS3ValidateCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/s3/validate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetStoragesS3ValidateCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs index 1c2e782..78a778a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetStorageS3Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class DatasetStorageS3Client : global::LabelStudio.IDatase /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs index ccd512b..4288639 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatasetRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsCreateSecurityRequirements, + operationName: "ApiDatasetsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs index 05ecc76..6e38a8e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsDestroySecurityRequirement0, + }; partial void PrepareApiDatasetsDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetsDestroyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsDestroySecurityRequirements, + operationName: "ApiDatasetsDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetsDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs index cd433f9..08dbceb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsImportPartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsImportPartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsImportPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsImportPartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetsImportPartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int? jobId, @@ -38,13 +57,19 @@ partial void ProcessApiDatasetsImportPartialUpdateResponse( jobId: ref jobId, signal: ref signal); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsImportPartialUpdateSecurityRequirements, + operationName: "ApiDatasetsImportPartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/import", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("job_id", jobId?.ToString()) .AddOptionalParameter("signal", signal) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -54,7 +79,7 @@ partial void ProcessApiDatasetsImportPartialUpdateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs index 04f2e7b..85b3cf9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsListSecurityRequirement0, + }; partial void PrepareApiDatasetsListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessApiDatasetsListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsListSecurityRequirements, + operationName: "ApiDatasetsListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetsListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs index ef6e4bc..5b43937 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsMembersCreateSecurityRequirement0, + }; partial void PrepareApiDatasetsMembersCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsMembersCreateSecurityRequirements, + operationName: "ApiDatasetsMembersCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/members", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsMembersCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs index 4060c1a..9ccb304 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsMembersDestroySecurityRequirement0, + }; partial void PrepareApiDatasetsMembersDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -38,12 +57,18 @@ partial void ProcessApiDatasetsMembersDestroyResponse( id: ref id, projectMember: ref projectMember); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsMembersDestroySecurityRequirements, + operationName: "ApiDatasetsMembersDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/members", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project_member", projectMember?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetsMembersDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs index c705cac..d8402bf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsMembersList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsMembersListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsMembersListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsMembersListSecurityRequirement0, + }; partial void PrepareApiDatasetsMembersListArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -43,12 +62,18 @@ partial void ProcessApiDatasetsMembersListResponseContent( id: ref id, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsMembersListSecurityRequirements, + operationName: "ApiDatasetsMembersListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/members", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsMembersListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs index b8761cc..0f91548 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsPartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsPartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsPartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetsPartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsPartialUpdateSecurityRequirements, + operationName: "ApiDatasetsPartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsPartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs index 8336948..879b766 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -38,9 +57,15 @@ partial void ProcessApiDatasetsRetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsRetrieveSecurityRequirements, + operationName: "ApiDatasetsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessApiDatasetsRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs index 2ced43a..489abd0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsUpdateSecurityRequirements, + operationName: "ApiDatasetsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs index 11c44af..4a4be95 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsCreateSecurityRequirement0, + }; partial void PrepareApiDatasetsViewsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatasetViewRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsCreateSecurityRequirements, + operationName: "ApiDatasetsViewsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/views/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetsViewsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs index 3822ec2..a4a8e1f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsDestroySecurityRequirement0, + }; partial void PrepareApiDatasetsViewsDestroyArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessApiDatasetsViewsDestroyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsDestroySecurityRequirements, + operationName: "ApiDatasetsViewsDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessApiDatasetsViewsDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs index 0a6935d..5dacd3a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsListSecurityRequirement0, + }; partial void PrepareApiDatasetsViewsListArguments( global::System.Net.Http.HttpClient httpClient, ref int? dataset); @@ -38,12 +57,18 @@ partial void ProcessApiDatasetsViewsListResponseContent( httpClient: HttpClient, dataset: ref dataset); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsListSecurityRequirements, + operationName: "ApiDatasetsViewsListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/views/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dataset", dataset?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessApiDatasetsViewsListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs index 0ca9396..667f3dc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsPartialUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsPartialUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsPartialUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetsViewsPartialUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsPartialUpdateSecurityRequirements, + operationName: "ApiDatasetsViewsPartialUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsViewsPartialUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs index e581559..ef02f24 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsResetDestroy.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsResetDestroySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsResetDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsResetDestroySecurityRequirement0, + }; partial void PrepareApiDatasetsViewsResetDestroyArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareApiDatasetsViewsResetDestroyRequest( @@ -28,9 +47,15 @@ partial void ProcessApiDatasetsViewsResetDestroyResponse( PrepareApiDatasetsViewsResetDestroyArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsResetDestroySecurityRequirements, + operationName: "ApiDatasetsViewsResetDestroyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/datasets/views/reset/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -40,7 +65,7 @@ partial void ProcessApiDatasetsViewsResetDestroyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs index 73102dd..795da73 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetsViewsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -38,9 +57,15 @@ partial void ProcessApiDatasetsViewsRetrieveResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsRetrieveSecurityRequirements, + operationName: "ApiDatasetsViewsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessApiDatasetsViewsRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs index 5750a3b..4567601 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.ApiDatasetsViewsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DatasetsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetsViewsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetsViewsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetsViewsUpdateSecurityRequirement0, + }; partial void PrepareApiDatasetsViewsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetsViewsUpdateSecurityRequirements, + operationName: "ApiDatasetsViewsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/datasets/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -58,7 +83,7 @@ partial void ProcessApiDatasetsViewsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs index 339e6b5..6a8f6e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DatasetsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DatasetsClient : global::LabelStudio.IDatasetsClient /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs index 070040b..314cda5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.CancelBackfill.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CancelBackfillSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CancelBackfillSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CancelBackfillSecurityRequirement0, + }; partial void PrepareCancelBackfillArguments( global::System.Net.Http.HttpClient httpClient, ref int? jobId, @@ -49,13 +68,19 @@ partial void ProcessCancelBackfillResponseContent( jobId: ref jobId, projectId: ref projectId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelBackfillSecurityRequirements, + operationName: "CancelBackfillAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dimensions/backfill/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("job_id", jobId?.ToString()) .AddOptionalParameter("project_id", projectId?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -65,7 +90,7 @@ partial void ProcessCancelBackfillResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs index 2ba0308..651544e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int projectPk, @@ -52,9 +71,15 @@ partial void ProcessCreateResponseContent( projectPk: ref projectPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Delete.g.cs index 8bf66a6..2054212 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -44,9 +63,15 @@ partial void ProcessDeleteResponse( id: ref id, projectPk: ref projectPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +81,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs index 4b620f2..9116740 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessGetResponseContent( id: ref id, projectPk: ref projectPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs index cb2e9b4..48b2a75 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.GetBackfillStatus.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetBackfillStatusSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetBackfillStatusSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetBackfillStatusSecurityRequirement0, + }; partial void PrepareGetBackfillStatusArguments( global::System.Net.Http.HttpClient httpClient, ref int? jobId, @@ -49,13 +68,19 @@ partial void ProcessGetBackfillStatusResponseContent( jobId: ref jobId, projectId: ref projectId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetBackfillStatusSecurityRequirements, + operationName: "GetBackfillStatusAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dimensions/backfill/status/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("job_id", jobId?.ToString()) .AddOptionalParameter("project_id", projectId?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessGetBackfillStatusResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs index d61d1cf..6d22817 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? agreementMethodology, @@ -59,6 +78,12 @@ partial void ProcessListResponseContent( ordering: ref ordering, projectPk: ref projectPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/", baseUri: HttpClient.BaseAddress); @@ -66,7 +91,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("agreement_methodology", agreementMethodology) .AddOptionalParameter("is_active", isActive?.ToString().ToLowerInvariant()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -76,7 +101,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs index 0fe98d4..5312317 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.ListBackfills.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListBackfillsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListBackfillsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListBackfillsSecurityRequirement0, + }; partial void PrepareListBackfillsArguments( global::System.Net.Http.HttpClient httpClient, ref string? status); @@ -44,12 +63,18 @@ partial void ProcessListBackfillsResponseContent( httpClient: HttpClient, status: ref status); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListBackfillsSecurityRequirements, + operationName: "ListBackfillsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dimensions/backfill/jobs/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("status", status) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListBackfillsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs index ac0e5e8..3a52d2c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.TriggerBackfill.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_TriggerBackfillSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_TriggerBackfillSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_TriggerBackfillSecurityRequirement0, + }; partial void PrepareTriggerBackfillArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AgreementV2BackfillTriggerRequestRequest request); @@ -51,9 +70,15 @@ partial void ProcessTriggerBackfillResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TriggerBackfillSecurityRequirements, + operationName: "TriggerBackfillAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dimensions/backfill/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -63,7 +88,7 @@ partial void ProcessTriggerBackfillResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs index 2c6a953..3dbdf5f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Dimensions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessUpdateResponseContent( projectPk: ref projectPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -69,7 +94,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs index 1ba33f3..7cc7f5a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Dimensions2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Dimensions2Client : global::LabelStudio.IDimensions2 /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs index afeb8e2..d313cae 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.ApiProjectsDimensionsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DimensionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsDimensionsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectsDimensionsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsDimensionsUpdateSecurityRequirement0, + }; partial void PrepareApiProjectsDimensionsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( projectPk: ref projectPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsDimensionsUpdateSecurityRequirements, + operationName: "ApiProjectsDimensionsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/dimensions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -69,7 +94,7 @@ partial void ProcessApiProjectsDimensionsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs index 55c570a..3568b51 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class DimensionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int? dimension, @@ -59,12 +78,18 @@ partial void ProcessGet2ResponseContent( selection: selection, taskPk: ref taskPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/tasks/{taskPk}/agreement-matrix", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("dimension", dimension?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -74,7 +99,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs index 0e2d598..5d74a22 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.DimensionsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class DimensionsClient : global::LabelStudio.IDimensionsCl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs index e906840..649f403 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Convert.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ConvertSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ConvertSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ConvertSecurityRequirement0, + }; partial void PrepareConvertArguments( global::System.Net.Http.HttpClient httpClient, ref int exportPk, @@ -51,9 +70,15 @@ partial void ProcessConvertResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ConvertSecurityRequirements, + operationName: "ConvertAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/{exportPk}/convert", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -63,7 +88,7 @@ partial void ProcessConvertResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs index 6e93ea5..4cd8124 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Delete.g.cs index 1e35afe..9c1c500 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int exportPk, @@ -38,9 +57,15 @@ partial void ProcessDeleteResponse( exportPk: ref exportPk, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/{exportPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -50,7 +75,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Download.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Download.g.cs index 6360232..13fc863 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Download.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Download.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DownloadSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DownloadSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DownloadSecurityRequirement0, + }; partial void PrepareDownloadArguments( global::System.Net.Http.HttpClient httpClient, ref string? exportType, @@ -53,12 +72,18 @@ partial void ProcessDownloadResponseContent( exportPk: ref exportPk, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DownloadSecurityRequirements, + operationName: "DownloadAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/{exportPk}/download", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("exportType", exportType) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -68,7 +93,7 @@ partial void ProcessDownloadResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs index 2277c60..733030e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int exportPk, @@ -43,9 +62,15 @@ partial void ProcessGetResponseContent( exportPk: ref exportPk, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/{exportPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -55,7 +80,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs index c072dce..dcd5435 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ExportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -43,12 +62,18 @@ partial void ProcessListResponseContent( id: ref id, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/exports/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -58,7 +83,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs index 79dbe79..fc60710 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ExportClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ExportClient : global::LabelStudio.IExportClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.Authorizations.Bearer.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.Authorizations.Bearer.g.cs index 65b2f39..f897148 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.Authorizations.Bearer.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.Authorizations.Bearer.g.cs @@ -9,6 +9,7 @@ public partial interface ILabelStudioClient /// Authorize using bearer authentication. /// /// + public void AuthorizeUsingBearer( string apiKey); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs index df41915..1613038 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs @@ -290,6 +290,11 @@ public partial interface ILabelStudioClient : global::System.IDisposable /// public StorageGcsClient StorageGcs { get; } + /// + /// + /// + public StorageGcsSaClient StorageGcsSa { get; } + /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Delete.g.cs index 45c6f2d..0808aef 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Delete.g.cs @@ -12,13 +12,15 @@ public partial interface IOrganizationsClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Delete multiple member tags from the organization in bulk. Allows the same request body as bulk create. + /// Delete multiple member tags from the organization in bulk. Pass tag IDs via the `ids` query parameter (comma-separated or repeated). For backward compatibility, a JSON body with `ids` is still accepted. /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task DeleteAsync( int id, + string? ids = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.List3.g.cs index bf32e34..268321f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.List3.g.cs @@ -22,6 +22,7 @@ public partial interface IOrganizationsClient /// /// /// + /// /// /// /// The token to cancel the operation with @@ -35,6 +36,7 @@ public partial interface IOrganizationsClient int? page = default, int? pageSize = default, string? role = default, + global::LabelStudio.ApiOrganizationsMembershipsListScope? scope = default, string? search = default, string? tags = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Update.g.cs index fa9e477..7653d4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.Update.g.cs @@ -52,6 +52,10 @@ public partial interface IOrganizationsClient /// Public Verification Key and Public Verification Algorithms configuration
/// Included only in requests /// + /// + /// ReactCode settings
+ /// Included only in requests + /// /// /// Organization name
/// Included only in requests @@ -65,6 +69,7 @@ public partial interface IOrganizationsClient object? emailNotificationSettings, global::System.Collections.Generic.IList>? embedDomains, object? embedSettings, + object? reactCodeSettings, string? title, string? contactInfo = default, int? createdBy = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs index 4550290..6746f79 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IOrganizationsClient.UpdateDefaultRole.g.cs @@ -69,6 +69,9 @@ public partial interface IOrganizationsClient /// /// A unique integer value identifying this organization. /// + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -86,6 +89,7 @@ public partial interface IOrganizationsClient bool? extraDataOnActivityLogs = default, global::System.DateTime? labelStreamNavigationDisabledAt = default, int? organization = default, + object? reactCodeSettings = default, global::System.DateTime? readOnlyQuickViewEnabledAt = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Create2.g.cs index b1cb374..6a5c086 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Create2.g.cs @@ -35,7 +35,7 @@ public partial interface IProjectsClient /// /// /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -44,7 +44,7 @@ public partial interface IProjectsClient /// global::System.Threading.Tasks.Task Create2Async( int id, - object? annotatorParams = default, + global::System.Collections.Generic.Dictionary? annotatorParams = default, bool? useKappa = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Delete2.g.cs index 56dade5..8ac1a6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Delete2.g.cs @@ -12,9 +12,12 @@ public partial interface IProjectsClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Unassign project members in bulk. Allows the same request body as bulk assign. + /// Unassign project members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional member filters (`search`, `role`, `tags`, `last_activity__gte`, `last_activity__lte`). For backward compatibility, a JSON body with bulk fields is still accepted. /// + /// + /// /// + /// /// /// /// @@ -24,6 +27,9 @@ public partial interface IProjectsClient /// global::System.Threading.Tasks.Task Delete2Async( int id, + bool? all = default, + string? excluded = default, + string? included = default, string? lastActivityGte = default, string? lastActivityLte = default, string? role = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.DeployFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.DeployFunction.g.cs new file mode 100644 index 0000000..8616cb4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.DeployFunction.g.cs @@ -0,0 +1,45 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IProjectsClient + { + /// + /// ✨ Deploy custom metric function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the custom metric function for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeployFunctionAsync( + int id, + + global::LabelStudio.CustomFunctionCodeRequestRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Deploy custom metric function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the custom metric function for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeployFunctionAsync( + int id, + string code, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunction.g.cs new file mode 100644 index 0000000..c46dee3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunction.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IProjectsClient + { + /// + /// ✨ Get custom metric code
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get the custom metric function code for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetFunctionAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunctionLogs.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunctionLogs.g.cs new file mode 100644 index 0000000..1ac49b3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetFunctionLogs.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IProjectsClient + { + /// + /// ✨ Get custom metric function logs
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get execution logs for the custom metric function. The server routes to the active cloud provider based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// + /// Default Value: 100 + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetFunctionLogsAsync( + int id, + string? endDate = default, + int? limit = default, + string? startDate = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetGcpFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetGcpFunction.g.cs new file mode 100644 index 0000000..fa27b81 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.GetGcpFunction.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IProjectsClient + { + /// + /// ✨ Get GCP custom metric code
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get the GCP Cloud Function code for the custom metric configured for this project. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetGcpFunctionAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Remove.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Remove.g.cs index 2b18de0..5dc6eca 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Remove.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.Remove.g.cs @@ -12,13 +12,15 @@ public partial interface IProjectsClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a member from a specific project. + /// Remove a member from a specific project. Pass the member ID via the `user` query parameter. For backward compatibility, a JSON body with `user` is still accepted. /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task RemoveAsync( int id, + int? user = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.UpdateGcpFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.UpdateGcpFunction.g.cs new file mode 100644 index 0000000..2c9a1d6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjectsClient.UpdateGcpFunction.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IProjectsClient + { + /// + /// ✨ Update GCP custom metric Cloud Function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the GCP Cloud Function used for custom metrics in this project. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGcpFunctionAsync( + int id, + + global::LabelStudio.GCPCustomFunctionUpdateRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Update GCP custom metric Cloud Function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the GCP Cloud Function used for custom metrics in this project. + ///
+ /// + /// + /// The Python code for the custom metric function. + /// + /// + /// The GCP project ID. Uses default if not provided. + /// + /// + /// The GCP region for the Cloud Function. Uses default if not provided. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateGcpFunctionAsync( + int id, + string code, + string? project = default, + string? region = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.Update.g.cs index 3a1900c..b4b3333 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.Update.g.cs @@ -37,6 +37,9 @@ public partial interface ISsoClient /// /// Identity Provider preset key (e.g. okta, azure, google, custom) /// + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// /// /// Mapping attributes: user email from SAML request /// @@ -69,6 +72,7 @@ public partial interface ISsoClient global::System.Threading.Tasks.Task UpdateAsync( string? domain = default, string? idpProvider = default, + bool? manualRoleManagement = default, string? mappingEmail = default, string? mappingFirstName = default, string? mappingGroups = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.ValidateMetadataUrl.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.ValidateMetadataUrl.g.cs index bb08c2c..e3a9328 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.ValidateMetadataUrl.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ISsoClient.ValidateMetadataUrl.g.cs @@ -12,7 +12,7 @@ public partial interface ISsoClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Validate a SAML metadata URL by fetching it and checking whether it returns valid XML, without saving any settings. + /// Validate a SAML metadata URL by fetching it and checking for valid XML, without saving. /// /// /// The token to cancel the operation with @@ -29,7 +29,7 @@ public partial interface ISsoClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Validate a SAML metadata URL by fetching it and checking whether it returns valid XML, without saving any settings. + /// Validate a SAML metadata URL by fetching it and checking for valid XML, without saving. /// /// /// The token to cancel the operation with diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create.g.cs new file mode 100644 index 0000000..e0d1c11 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Create GCS export storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a GCS export storage connection with SA Impersonation to store annotations. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateAsync( + + global::LabelStudio.GCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Create GCS export storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a GCS export storage connection with SA Impersonation to store annotations. + ///
+ /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateAsync( + int project, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create2.g.cs new file mode 100644 index 0000000..67254a3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Create2.g.cs @@ -0,0 +1,120 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Create GCS import storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create GCS import storage with Service Account Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Create2Async( + + global::LabelStudio.GCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Create GCS import storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create GCS import storage with Service Account Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Create2Async( + int project, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete.g.cs new file mode 100644 index 0000000..0a2cce3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Delete GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete2.g.cs new file mode 100644 index 0000000..4616c12 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Delete2.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Delete GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Delete2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get.g.cs new file mode 100644 index 0000000..8199910 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Get GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get2.g.cs new file mode 100644 index 0000000..a8a6c71 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Get2.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Get GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Get2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List.g.cs new file mode 100644 index 0000000..fa07f3d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Get all GCS SA export storages
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a list of all GCS export storage connections set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListAsync( + int project, + string? ordering = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List2.g.cs new file mode 100644 index 0000000..ccf1f92 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.List2.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Get all GCS SA import storages
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get list of all GCS import storage connections set up with Service Account Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> List2Async( + int project, + string? ordering = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync.g.cs new file mode 100644 index 0000000..691f18c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Sync GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Sync annotations to a GCS SA export storage. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task SyncAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync2.g.cs new file mode 100644 index 0000000..270394a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Sync2.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Sync GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Sync tasks from a GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Sync2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update.g.cs new file mode 100644 index 0000000..0a08c7f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update.g.cs @@ -0,0 +1,116 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Update GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateAsync( + int id, + + global::LabelStudio.PatchedGCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Update GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateAsync( + int id, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + int? project = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update2.g.cs new file mode 100644 index 0000000..6664a38 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Update2.g.cs @@ -0,0 +1,124 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Update GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Update2Async( + int id, + + global::LabelStudio.PatchedGCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Update GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Update2Async( + int id, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + int? project = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate.g.cs new file mode 100644 index 0000000..fa7506e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Validate GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ValidateAsync( + + global::LabelStudio.GCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Validate GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ValidateAsync( + int project, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate2.g.cs new file mode 100644 index 0000000..13b49c6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.Validate2.g.cs @@ -0,0 +1,120 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IStorageGcsSaClient + { + /// + /// ✨ Validate GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Validate2Async( + + global::LabelStudio.GCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Validate GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task Validate2Async( + int project, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.g.cs new file mode 100644 index 0000000..cb2907e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStorageGcsSaClient.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IStorageGcsSaClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete2.g.cs index fce0795..a4dfc27 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete2.g.cs @@ -12,13 +12,15 @@ public partial interface IWorkspacesClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a specific member by ID from a workspace. This endpoint expects an object like `{"user_id": 123}`. + /// Remove a specific member by ID from a workspace. Pass the member ID via the `user_id` query parameter. For backward compatibility, a JSON body with `user_id` (or `user`) is still accepted. /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task Delete2Async( int id, + int? userId = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete3.g.cs index fda28f4..3943810 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Delete3.g.cs @@ -12,13 +12,23 @@ public partial interface IWorkspacesClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Unassign workspace members in bulk. Allows the same request body as bulk assign. + /// Unassign workspace members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional paginated-list filters (`search`, `ids`). For backward compatibility, a JSON body with bulk fields is still accepted. /// + /// + /// /// + /// + /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task Delete3Async( int id, + bool? all = default, + string? excluded = default, + string? ids = default, + string? included = default, + string? search = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Remove.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Remove.g.cs index a4274e5..e31a3b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Remove.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IWorkspacesClient.Remove.g.cs @@ -12,13 +12,15 @@ public partial interface IWorkspacesClient /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a project from a specific workspace. + /// Remove a project from a specific workspace. Pass the project ID via the `project` query parameter. For backward compatibility, a JSON body with `project` is still accepted. /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task RemoveAsync( int id, + int? project = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Delete.g.cs index 543aeec..7261b98 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/import/file-upload/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.DeleteMany.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.DeleteMany.g.cs index 545f94e..9632c4a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.DeleteMany.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.DeleteMany.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteManySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteManySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteManySecurityRequirement0, + }; partial void PrepareDeleteManyArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -34,9 +53,15 @@ partial void ProcessDeleteManyResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteManySecurityRequirements, + operationName: "DeleteManyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/file-uploads", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -46,7 +71,7 @@ partial void ProcessDeleteManyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Download.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Download.g.cs index d903195..7b9e4ad 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Download.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Download.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DownloadSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DownloadSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DownloadSecurityRequirement0, + }; partial void PrepareDownloadArguments( global::System.Net.Http.HttpClient httpClient, ref string filename); @@ -33,9 +52,15 @@ partial void ProcessDownloadResponse( httpClient: HttpClient, filename: ref filename); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DownloadSecurityRequirements, + operationName: "DownloadAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/data/upload/{filename}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessDownloadResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs index a4ed969..d58153b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/import/file-upload/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs index dec0959..cba94a9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref bool? all, @@ -54,6 +73,12 @@ partial void ProcessListResponseContent( ids: ids, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/file-uploads", baseUri: HttpClient.BaseAddress); @@ -61,7 +86,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("all", all?.ToString().ToLowerInvariant()) .AddOptionalParameter("ids", ids, delimiter: ",", explode: true) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -71,7 +96,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs index b1f243d..051125d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ImportClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/import/file-upload/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs index 28c0ae4..47a2448 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ImportClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ImportClient : global::LabelStudio.IImportClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScope.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScope.g.cs new file mode 100644 index 0000000..304e337 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScope.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiOrganizationsMembershipsListScopeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiOrganizationsMembershipsListScope Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiOrganizationsMembershipsListScope)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiOrganizationsMembershipsListScope); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiOrganizationsMembershipsListScope value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullable.g.cs new file mode 100644 index 0000000..bf9c1e5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiOrganizationsMembershipsListScopeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiOrganizationsMembershipsListScope? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiOrganizationsMembershipsListScope)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiOrganizationsMembershipsListScope?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiOrganizationsMembershipsListScope? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LabelStudio.ApiOrganizationsMembershipsListScopeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs new file mode 100644 index 0000000..6aa4237 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiProjectsCustomFunctionRetrieveResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusNullable.g.cs new file mode 100644 index 0000000..c804672 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiProjectsCustomFunctionRetrieveResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs new file mode 100644 index 0000000..5f0ab1c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiProjectsGcpCustomFunctionRetrieveResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullable.g.cs new file mode 100644 index 0000000..c4ae021 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index a367347..4f34e68 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -281,6 +281,10 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.ApiDmActionsCreateIdNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiOrganizationsMembershipsListScopeNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeJsonConverter), typeof(global::LabelStudio.JsonConverters.ApiProjectsTasksAssigneesDestroyTypeNullableJsonConverter), @@ -301,6 +305,14 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.ApiProjectsAwsCustomFunctionRetrieveResponseStatusNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusNullableJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.MaybeExpandedCommentJsonConverter), typeof(global::LabelStudio.JsonConverters.RoleBasedTaskJsonConverter), @@ -439,6 +451,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConvertedFormat))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Status7bfEnum), TypeInfoPropertyName = "Status7bfEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConvertedFormatRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CustomFunctionCodeRequestRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksExportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DatabricksImportStorage))] @@ -471,10 +484,15 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FilterRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FinishedEnum), TypeInfoPropertyName = "FinishedEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCPCustomFunctionUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSSAExportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSSAExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSSAImportStorage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSSAImportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFExportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.GCSWIFImportStorage))] @@ -669,6 +687,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDimensionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFileUploadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSSAExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSSAImportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSWIFExportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSWIFImportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedHotkeysRequest))] @@ -735,9 +755,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.S3ImportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettingsUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettingsUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SamlSettingsUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ScimSettings))] @@ -899,6 +919,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiUsersPartialUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiActivityLogsListMethod), TypeInfoPropertyName = "ApiActivityLogsListMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiDmActionsCreateId), TypeInfoPropertyName = "ApiDmActionsCreateId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiOrganizationsMembershipsListScope), TypeInfoPropertyName = "ApiOrganizationsMembershipsListScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesDestroyType), TypeInfoPropertyName = "ApiProjectsTasksAssigneesDestroyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType), TypeInfoPropertyName = "ApiPromptsCompatibleProjectsListProjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset), TypeInfoPropertyName = "ApiPromptsVersionsInferenceRunsListProjectSubset2")] @@ -944,11 +965,15 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus), TypeInfoPropertyName = "ApiProjectsAwsCustomFunctionRetrieveResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus), TypeInfoPropertyName = "ApiProjectsCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsDashboardRetrieveResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsDuplicateCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsExportsConvertCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus), TypeInfoPropertyName = "ApiProjectsGcpCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsImportCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsImportPredictionsCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsMembersBulkDestroyResponse))] @@ -995,6 +1020,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1003,6 +1029,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1152,6 +1179,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1159,6 +1187,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index d704f9f..15f0f0a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -392,2375 +392,2435 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.DatabricksExportStorage? Type91 { get; set; } + public global::LabelStudio.CustomFunctionCodeRequestRequest? Type91 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorageRequest? Type92 { get; set; } + public global::LabelStudio.DatabricksExportStorage? Type92 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorage? Type93 { get; set; } + public global::LabelStudio.DatabricksExportStorageRequest? Type93 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorageRequest? Type94 { get; set; } + public global::LabelStudio.DatabricksImportStorage? Type94 { get; set; } /// /// /// - public global::LabelStudio.Dataset? Type95 { get; set; } + public global::LabelStudio.DatabricksImportStorageRequest? Type95 { get; set; } /// /// /// - public global::LabelStudio.DatasetMember? Type96 { get; set; } + public global::LabelStudio.Dataset? Type96 { get; set; } /// /// /// - public global::LabelStudio.DatasetMemberRequest? Type97 { get; set; } + public global::LabelStudio.DatasetMember? Type97 { get; set; } /// /// /// - public global::LabelStudio.DatasetRequest? Type98 { get; set; } + public global::LabelStudio.DatasetMemberRequest? Type98 { get; set; } /// /// /// - public global::LabelStudio.UserSimpleRequest? Type99 { get; set; } + public global::LabelStudio.DatasetRequest? Type99 { get; set; } /// /// /// - public global::LabelStudio.DatasetView? Type100 { get; set; } + public global::LabelStudio.UserSimpleRequest? Type100 { get; set; } /// /// /// - public global::LabelStudio.FilterGroup? Type101 { get; set; } + public global::LabelStudio.DatasetView? Type101 { get; set; } /// /// /// - public global::LabelStudio.DatasetViewRequest? Type102 { get; set; } + public global::LabelStudio.FilterGroup? Type102 { get; set; } /// /// /// - public global::LabelStudio.FilterGroupRequest? Type103 { get; set; } + public global::LabelStudio.DatasetViewRequest? Type103 { get; set; } /// /// /// - public global::LabelStudio.Default165Enum? Type104 { get; set; } + public global::LabelStudio.FilterGroupRequest? Type104 { get; set; } /// /// /// - public global::LabelStudio.DefaultRole? Type105 { get; set; } + public global::LabelStudio.Default165Enum? Type105 { get; set; } /// /// /// - public global::LabelStudio.Dimension? Type106 { get; set; } + public global::LabelStudio.DefaultRole? Type106 { get; set; } /// /// /// - public global::LabelStudio.DimensionCreateRequest? Type107 { get; set; } + public global::LabelStudio.Dimension? Type107 { get; set; } /// /// /// - public global::LabelStudio.DimensionList? Type108 { get; set; } + public global::LabelStudio.DimensionCreateRequest? Type108 { get; set; } /// /// /// - public global::LabelStudio.DimensionRequest? Type109 { get; set; } + public global::LabelStudio.DimensionList? Type109 { get; set; } /// /// /// - public global::LabelStudio.EditionEnum? Type110 { get; set; } + public global::LabelStudio.DimensionRequest? Type110 { get; set; } /// /// /// - public global::LabelStudio.Export? Type111 { get; set; } + public global::LabelStudio.EditionEnum? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::LabelStudio.Export? Type112 { get; set; } /// /// /// - public global::LabelStudio.ExportConvertRequest? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type114 { get; set; } + public global::LabelStudio.ExportConvertRequest? Type114 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteResponse? Type115 { get; set; } + public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type115 { get; set; } /// /// /// - public global::LabelStudio.StateModel? Type116 { get; set; } + public global::LabelStudio.FSMTransitionExecuteResponse? Type116 { get; set; } /// /// /// - public global::LabelStudio.FileUpload? Type117 { get; set; } + public global::LabelStudio.StateModel? Type117 { get; set; } /// /// /// - public global::LabelStudio.Filter? Type118 { get; set; } + public global::LabelStudio.FileUpload? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::LabelStudio.Filter? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::LabelStudio.FilterRequest? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::LabelStudio.FinishedEnum? Type122 { get; set; } + public global::LabelStudio.FilterRequest? Type122 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorage? Type123 { get; set; } + public global::LabelStudio.FinishedEnum? Type123 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorageRequest? Type124 { get; set; } + public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type124 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorage? Type125 { get; set; } + public global::LabelStudio.GCSDatasetStorage? Type125 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorage? Type126 { get; set; } + public global::LabelStudio.GCSDatasetStorageRequest? Type126 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorage? Type127 { get; set; } + public global::LabelStudio.GCSExportStorage? Type127 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorageRequest? Type128 { get; set; } + public global::LabelStudio.GCSImportStorage? Type128 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorage? Type129 { get; set; } + public global::LabelStudio.GCSSAExportStorage? Type129 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorageRequest? Type130 { get; set; } + public global::LabelStudio.GCSSAExportStorageRequest? Type130 { get; set; } /// /// /// - public global::LabelStudio.Hotkeys? Type131 { get; set; } + public global::LabelStudio.GCSSAImportStorage? Type131 { get; set; } /// /// /// - public global::LabelStudio.ImportApiRequest? Type132 { get; set; } + public global::LabelStudio.GCSSAImportStorageRequest? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::LabelStudio.GCSWIFExportStorage? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::LabelStudio.GCSWIFExportStorageRequest? Type134 { get; set; } /// /// /// - public global::LabelStudio.PredictionRequest? Type135 { get; set; } + public global::LabelStudio.GCSWIFImportStorage? Type135 { get; set; } /// /// /// - public global::LabelStudio.InferenceRunCostEstimate? Type136 { get; set; } + public global::LabelStudio.GCSWIFImportStorageRequest? Type136 { get; set; } /// /// /// - public global::LabelStudio.KPIDetailResponse? Type137 { get; set; } + public global::LabelStudio.Hotkeys? Type137 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectSegment? Type138 { get; set; } + public global::LabelStudio.ImportApiRequest? Type138 { get; set; } /// /// /// - public global::LabelStudio.KPIUserSegment? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::LabelStudio.KPIMatrixSegment? Type140 { get; set; } + public global::System.Collections.Generic.IList? Type140 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectMatrixSegment? Type141 { get; set; } + public global::LabelStudio.PredictionRequest? Type141 { get; set; } /// /// /// - public global::LabelStudio.SegmentationEnum? Type142 { get; set; } + public global::LabelStudio.InferenceRunCostEstimate? Type142 { get; set; } /// /// /// - public global::LabelStudio.KPITimeSegment? Type143 { get; set; } + public global::LabelStudio.KPIDetailResponse? Type143 { get; set; } /// /// /// - public global::LabelStudio.KPIValue? Type144 { get; set; } + public global::LabelStudio.KPIProjectSegment? Type144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type145 { get; set; } + public global::LabelStudio.KPIUserSegment? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::LabelStudio.KPIMatrixSegment? Type146 { get; set; } /// /// /// - public global::LabelStudio.KPIUserInfo? Type147 { get; set; } + public global::LabelStudio.KPIProjectMatrixSegment? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type148 { get; set; } + public global::LabelStudio.SegmentationEnum? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::LabelStudio.KPITimeSegment? Type149 { get; set; } /// /// /// - public global::LabelStudio.KPIMetadata? Type150 { get; set; } + public global::LabelStudio.KPIValue? Type150 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectInfo? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::System.Collections.Generic.IList? Type152 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenBlacklistRequest? Type153 { get; set; } + public global::LabelStudio.KPIUserInfo? Type153 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenRotateRequest? Type154 { get; set; } + public global::System.Collections.Generic.IList>? Type154 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenCreate? Type155 { get; set; } + public global::System.Collections.Generic.IList? Type155 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenList? Type156 { get; set; } + public global::LabelStudio.KPIMetadata? Type156 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettings? Type157 { get; set; } + public global::LabelStudio.KPIProjectInfo? Type157 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettingsRequest? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::LabelStudio.LSEKeyIndicatorValue? Type159 { get; set; } + public global::LabelStudio.LSAPITokenBlacklistRequest? Type159 { get; set; } /// /// /// - public global::LabelStudio.Label? Type160 { get; set; } + public global::LabelStudio.LSAPITokenRotateRequest? Type160 { get; set; } /// /// /// - public global::LabelStudio.LabelCreate? Type161 { get; set; } + public global::LabelStudio.LSEAPITokenCreate? Type161 { get; set; } /// /// /// - public global::LabelStudio.LabelCreateRequest? Type162 { get; set; } + public global::LabelStudio.LSEAPITokenList? Type162 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsResponse? Type163 { get; set; } + public global::LabelStudio.LSEJWTSettings? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::LabelStudio.LSEJWTSettingsRequest? Type164 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsRow? Type165 { get; set; } + public global::LabelStudio.LSEKeyIndicatorValue? Type165 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsTotals? Type166 { get; set; } + public global::LabelStudio.Label? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type167 { get; set; } + public global::LabelStudio.LabelCreate? Type167 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureDimension? Type168 { get; set; } + public global::LabelStudio.LabelCreateRequest? Type168 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureResponse? Type169 { get; set; } + public global::LabelStudio.LabelDistributionCountsResponse? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::LabelStudio.LabelLink? Type171 { get; set; } + public global::LabelStudio.LabelDistributionCountsRow? Type171 { get; set; } /// /// /// - public global::LabelStudio.LabelLinkRequest? Type172 { get; set; } + public global::LabelStudio.LabelDistributionCountsTotals? Type172 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorage? Type173 { get; set; } + public global::System.Collections.Generic.Dictionary? Type173 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorage? Type174 { get; set; } + public global::LabelStudio.LabelDistributionStructureDimension? Type174 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptions? Type175 { get; set; } + public global::LabelStudio.LabelDistributionStructureResponse? Type175 { get; set; } /// /// /// - public global::LabelStudio.ReviewedEnum? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type177 { get; set; } + public global::LabelStudio.LabelLink? Type177 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreate? Type178 { get; set; } + public global::LabelStudio.LabelLinkRequest? Type178 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptions? Type179 { get; set; } + public global::LabelStudio.LocalFilesExportStorage? Type179 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptions? Type180 { get; set; } + public global::LabelStudio.LocalFilesImportStorage? Type180 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreateRequest? Type181 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptions? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::LabelStudio.ReviewedEnum? Type182 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionsRequest? Type183 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type183 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptionsRequest? Type184 { get; set; } + public global::LabelStudio.LseExportCreate? Type184 { get; set; } /// /// /// - public global::LabelStudio.LseFields? Type185 { get; set; } + public global::LabelStudio.SerializationOptions? Type185 { get; set; } /// /// /// - public global::LabelStudio.OnboardingStateEnum? Type186 { get; set; } + public global::LabelStudio.LseTaskFilterOptions? Type186 { get; set; } /// /// /// - public global::LabelStudio.TrialRoleEnum? Type187 { get; set; } + public global::LabelStudio.LseExportCreateRequest? Type187 { get; set; } /// /// /// - public global::LabelStudio.LseFieldsRequest? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::LabelStudio.LseOrganization? Type189 { get; set; } + public global::LabelStudio.SerializationOptionsRequest? Type189 { get; set; } /// /// /// - public global::LabelStudio.OrganizationBilling? Type190 { get; set; } + public global::LabelStudio.LseTaskFilterOptionsRequest? Type190 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberList? Type191 { get; set; } + public global::LabelStudio.LseFields? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::LabelStudio.OnboardingStateEnum? Type192 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type193 { get; set; } + public global::LabelStudio.TrialRoleEnum? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::LabelStudio.LseFieldsRequest? Type194 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type195 { get; set; } + public global::LabelStudio.LseOrganization? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::LabelStudio.OrganizationBilling? Type196 { get; set; } /// /// /// - public global::LabelStudio.SimpleOrganizationMemberTag? Type197 { get; set; } + public global::LabelStudio.LseOrganizationMemberList? Type197 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberList? Type198 { get; set; } + public global::System.Collections.Generic.IList? Type198 { get; set; } /// /// /// - public global::LabelStudio.LseProject? Type199 { get; set; } + public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type199 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCounts? Type200 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreate? Type201 { get; set; } + public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type201 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequest? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type203 { get; set; } + public global::LabelStudio.SimpleOrganizationMemberTag? Type203 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParams? Type204 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberList? Type204 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParamsRequest? Type205 { get; set; } + public global::LabelStudio.LseProject? Type205 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponse? Type206 { get; set; } + public global::LabelStudio.LseProjectCounts? Type206 { get; set; } /// /// /// - public global::LabelStudio.LseProjectUpdate? Type207 { get; set; } + public global::LabelStudio.LseProjectCreate? Type207 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorage? Type208 { get; set; } + public global::LabelStudio.LseProjectCreateRequest? Type208 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorageRequest? Type209 { get; set; } + public global::System.Collections.Generic.Dictionary? Type209 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorage? Type210 { get; set; } + public global::LabelStudio.LseProjectParams? Type210 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorageRequest? Type211 { get; set; } + public global::LabelStudio.LseProjectParamsRequest? Type211 { get; set; } /// /// /// - public global::LabelStudio.LseTask? Type212 { get; set; } + public global::LabelStudio.LseProjectResponse? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::LabelStudio.LseProjectUpdate? Type213 { get; set; } /// /// /// - public global::LabelStudio.LseTaskDraft? Type214 { get; set; } + public global::LabelStudio.LseS3ExportStorage? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type215 { get; set; } + public global::LabelStudio.LseS3ExportStorageRequest? Type215 { get; set; } /// /// /// - public global::LabelStudio.LseTaskPrediction? Type216 { get; set; } + public global::LabelStudio.LseS3ImportStorage? Type216 { get; set; } /// /// /// - public global::LabelStudio.SkippedEnum? Type217 { get; set; } + public global::LabelStudio.LseS3ImportStorageRequest? Type217 { get; set; } /// /// /// - public global::LabelStudio.LseTaskRequest? Type218 { get; set; } + public global::LabelStudio.LseTask? Type218 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotators? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::LabelStudio.LseTaskDraft? Type220 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::LabelStudio.LseTaskPrediction? Type222 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type223 { get; set; } + public global::LabelStudio.SkippedEnum? Type223 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewers? Type224 { get; set; } + public global::LabelStudio.LseTaskRequest? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotators? Type225 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type227 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type229 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembership? Type230 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewers? Type230 { get; set; } /// /// /// - public global::LabelStudio.LseUserAPI? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type232 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type234 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::LabelStudio.MLBackend? Type236 { get; set; } + public global::LabelStudio.OrganizationMembership? Type236 { get; set; } /// /// /// - public global::LabelStudio.StateEnum? Type237 { get; set; } + public global::LabelStudio.LseUserAPI? Type237 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequest? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type239 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type239 { get; set; } /// /// /// - public global::LabelStudio.MaybeExpandedComment? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::LabelStudio.MetricParam? Type241 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type241 { get; set; } /// /// /// - public global::LabelStudio.MetricParamUpdateRequest? Type242 { get; set; } + public global::LabelStudio.MLBackend? Type242 { get; set; } /// /// /// - public global::LabelStudio.ModeEnum? Type243 { get; set; } + public global::LabelStudio.StateEnum? Type243 { get; set; } /// /// /// - public global::LabelStudio.ModelInterface? Type244 { get; set; } + public global::LabelStudio.MLBackendRequest? Type244 { get; set; } /// /// /// - public global::LabelStudio.SkillNameEnum? Type245 { get; set; } + public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type245 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceRequest? Type246 { get; set; } + public global::LabelStudio.MaybeExpandedComment? Type246 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceSerializerGET? Type247 { get; set; } + public global::LabelStudio.MetricParam? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::LabelStudio.MetricParamUpdateRequest? Type248 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnection? Type249 { get; set; } + public global::LabelStudio.ModeEnum? Type249 { get; set; } /// /// /// - public global::LabelStudio.ProviderEnum? Type250 { get; set; } + public global::LabelStudio.ModelInterface? Type250 { get; set; } /// /// /// - public global::LabelStudio.ScopeEnum? Type251 { get; set; } + public global::LabelStudio.SkillNameEnum? Type251 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnectionRequest? Type252 { get; set; } + public global::LabelStudio.ModelInterfaceRequest? Type252 { get; set; } /// /// /// - public global::LabelStudio.ModelRun? Type253 { get; set; } + public global::LabelStudio.ModelInterfaceSerializerGET? Type253 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetEnum? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::LabelStudio.ModelRunStatusEnum? Type255 { get; set; } + public global::LabelStudio.ModelProviderConnection? Type255 { get; set; } /// /// /// - public global::LabelStudio.ModelRunRequest? Type256 { get; set; } + public global::LabelStudio.ProviderEnum? Type256 { get; set; } /// /// /// - public global::LabelStudio.Options165Enum? Type257 { get; set; } + public global::LabelStudio.ScopeEnum? Type257 { get; set; } /// /// /// - public global::LabelStudio.OrganizationId? Type258 { get; set; } + public global::LabelStudio.ModelProviderConnectionRequest? Type258 { get; set; } /// /// /// - public global::LabelStudio.OrganizationInvite? Type259 { get; set; } + public global::LabelStudio.ModelRun? Type259 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMember? Type260 { get; set; } + public global::LabelStudio.ProjectSubsetEnum? Type260 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type261 { get; set; } + public global::LabelStudio.ModelRunStatusEnum? Type261 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberContributedToProject? Type262 { get; set; } + public global::LabelStudio.ModelRunRequest? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type263 { get; set; } + public global::LabelStudio.Options165Enum? Type263 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberCreatedProject? Type264 { get; set; } + public global::LabelStudio.OrganizationId? Type264 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTag? Type265 { get; set; } + public global::LabelStudio.OrganizationInvite? Type265 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type266 { get; set; } + public global::LabelStudio.OrganizationMember? Type266 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public byte[]? Type268 { get; set; } + public global::LabelStudio.OrganizationMemberContributedToProject? Type268 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatus? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type270 { get; set; } + public global::LabelStudio.OrganizationMemberCreatedProject? Type270 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagRequest? Type271 { get; set; } + public global::LabelStudio.OrganizationMemberTag? Type271 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembershipRequest? Type272 { get; set; } + public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type272 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermission? Type273 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public byte[]? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type275 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatus? Type275 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRequest? Type276 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type276 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAllRolesProjectListList? Type277 { get; set; } + public global::LabelStudio.OrganizationMemberTagRequest? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::LabelStudio.OrganizationMembershipRequest? Type278 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAnnotationHistoryList? Type279 { get; set; } + public global::LabelStudio.OrganizationPermission? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::System.Collections.Generic.IList? Type280 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelCreateList? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type282 { get; set; } + public global::LabelStudio.OrganizationPermissionRequest? Type282 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelLinkList? Type283 { get; set; } + public global::LabelStudio.PaginatedAllRolesProjectListList? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelList? Type285 { get; set; } + public global::LabelStudio.PaginatedAnnotationHistoryList? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type287 { get; set; } + public global::LabelStudio.PaginatedLabelCreateList? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::System.Collections.Generic.IList? Type288 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseProjectCountsList? Type289 { get; set; } + public global::LabelStudio.PaginatedLabelLinkList? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseUserList? Type291 { get; set; } + public global::LabelStudio.PaginatedLabelList? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::LabelStudio.PaginatedOrganizationMemberTagList? Type293 { get; set; } + public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type294 { get; set; } + public global::System.Collections.Generic.IList? Type294 { get; set; } /// /// /// - public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type295 { get; set; } + public global::LabelStudio.PaginatedLseProjectCountsList? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectMember? Type297 { get; set; } + public global::LabelStudio.PaginatedLseUserList? Type297 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type299 { get; set; } + public global::LabelStudio.PaginatedOrganizationMemberTagList? Type299 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTasksResponse? Type300 { get; set; } + public global::System.Collections.Generic.IList? Type300 { get; set; } /// /// /// - public global::LabelStudio.PaginatedRoleBasedTaskList? Type301 { get; set; } + public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::LabelStudio.RoleBasedTask? Type303 { get; set; } + public global::LabelStudio.PaginatedProjectMember? Type303 { get; set; } /// /// /// - public global::LabelStudio.PaginatedStateModelList? Type304 { get; set; } + public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::System.Collections.Generic.IList? Type305 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnalyticsViewRequest? Type306 { get; set; } + public global::LabelStudio.ProjectSubsetTasksResponse? Type306 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationReviewRequest? Type307 { get; set; } + public global::LabelStudio.PaginatedRoleBasedTaskList? Type307 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type309 { get; set; } + public global::LabelStudio.RoleBasedTask? Type309 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type310 { get; set; } + public global::LabelStudio.PaginatedStateModelList? Type310 { get; set; } /// /// /// - public global::LabelStudio.PatchedBlueprintUpdateRequest? Type311 { get; set; } + public global::System.Collections.Generic.IList? Type311 { get; set; } /// /// /// - public global::LabelStudio.PatchedCommentRequest? Type312 { get; set; } + public global::LabelStudio.PatchedAnalyticsViewRequest? Type312 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksExportStorageRequest? Type313 { get; set; } + public global::LabelStudio.PatchedAnnotationReviewRequest? Type313 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksImportStorageRequest? Type314 { get; set; } + public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type314 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetRequest? Type315 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type315 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetViewRequest? Type316 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type316 { get; set; } /// /// /// - public global::LabelStudio.PatchedDefaultRoleRequest? Type317 { get; set; } + public global::LabelStudio.PatchedBlueprintUpdateRequest? Type317 { get; set; } /// /// /// - public global::LabelStudio.PatchedDimensionRequest? Type318 { get; set; } + public global::LabelStudio.PatchedCommentRequest? Type318 { get; set; } /// /// /// - public global::LabelStudio.PatchedFileUploadRequest? Type319 { get; set; } + public global::LabelStudio.PatchedDatabricksExportStorageRequest? Type319 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type320 { get; set; } + public global::LabelStudio.PatchedDatabricksImportStorageRequest? Type320 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type321 { get; set; } + public global::LabelStudio.PatchedDatasetRequest? Type321 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type322 { get; set; } + public global::LabelStudio.PatchedDatasetViewRequest? Type322 { get; set; } /// /// /// - public global::LabelStudio.PatchedHotkeysRequest? Type323 { get; set; } + public global::LabelStudio.PatchedDefaultRoleRequest? Type323 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelLinkRequest? Type324 { get; set; } + public global::LabelStudio.PatchedDimensionRequest? Type324 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelRequest? Type325 { get; set; } + public global::LabelStudio.PatchedFileUploadRequest? Type325 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type326 { get; set; } + public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type326 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type327 { get; set; } + public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type328 { get; set; } + public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type328 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequest? Type329 { get; set; } + public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type329 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsRequest? Type330 { get; set; } + public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type330 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type331 { get; set; } + public global::LabelStudio.PatchedHotkeysRequest? Type331 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type332 { get; set; } + public global::LabelStudio.PatchedLabelLinkRequest? Type332 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseTaskRequest? Type333 { get; set; } + public global::LabelStudio.PatchedLabelRequest? Type333 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type334 { get; set; } + public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type334 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelInterfaceRequest? Type335 { get; set; } + public global::System.Collections.Generic.IList>? Type335 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelProviderConnectionRequest? Type336 { get; set; } + public global::System.Collections.Generic.Dictionary? Type336 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type337 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequest? Type337 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type338 { get; set; } + public global::LabelStudio.ReviewSettingsRequest? Type338 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationPermissionRequest? Type339 { get; set; } + public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type339 { get; set; } /// /// /// - public global::LabelStudio.PatchedPauseRequest? Type340 { get; set; } + public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type340 { get; set; } /// /// /// - public global::LabelStudio.ReasonEnum? Type341 { get; set; } + public global::LabelStudio.PatchedLseTaskRequest? Type341 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectTemplateRequest? Type342 { get; set; } + public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type342 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3DatasetStorageRequest? Type343 { get; set; } + public global::LabelStudio.PatchedModelInterfaceRequest? Type343 { get; set; } /// /// /// - public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type344 { get; set; } + public global::LabelStudio.PatchedModelProviderConnectionRequest? Type344 { get; set; } /// /// /// - public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type345 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type345 { get; set; } /// /// /// - public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type346 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type347 { get; set; } + public global::LabelStudio.PatchedOrganizationPermissionRequest? Type347 { get; set; } /// /// /// - public global::LabelStudio.PatchedWorkspaceRequest? Type348 { get; set; } + public global::LabelStudio.PatchedPauseRequest? Type348 { get; set; } /// /// /// - public global::LabelStudio.Pause? Type349 { get; set; } + public global::LabelStudio.ReasonEnum? Type349 { get; set; } /// /// /// - public global::LabelStudio.PauseRequest? Type350 { get; set; } + public global::LabelStudio.PatchedProjectTemplateRequest? Type350 { get; set; } /// /// /// - public global::LabelStudio.Prediction? Type351 { get; set; } + public global::LabelStudio.PatchedS3DatasetStorageRequest? Type351 { get; set; } /// /// /// - public global::LabelStudio.Project? Type352 { get; set; } + public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type352 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateRequest? Type353 { get; set; } + public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type353 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroup? Type354 { get; set; } + public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type354 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRoleEnum? Type355 { get; set; } + public global::System.Collections.Generic.IList? Type355 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRequest? Type356 { get; set; } + public global::LabelStudio.PatchedWorkspaceRequest? Type356 { get; set; } /// /// /// - public global::LabelStudio.ProjectImport? Type357 { get; set; } + public global::LabelStudio.Pause? Type357 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfig? Type358 { get; set; } + public global::LabelStudio.PauseRequest? Type358 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfigRequest? Type359 { get; set; } + public global::LabelStudio.Prediction? Type359 { get; set; } /// /// /// - public global::LabelStudio.ProjectMember? Type360 { get; set; } + public global::LabelStudio.Project? Type360 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRequest? Type361 { get; set; } + public global::LabelStudio.ProjectDuplicateRequest? Type361 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type362 { get; set; } + public global::LabelStudio.ProjectGroup? Type362 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type363 { get; set; } + public global::LabelStudio.ProjectGroupRoleEnum? Type363 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberRequest? Type364 { get; set; } + public global::LabelStudio.ProjectGroupRequest? Type364 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimport? Type365 { get; set; } + public global::LabelStudio.ProjectImport? Type365 { get; set; } /// /// /// - public global::LabelStudio.ProjectRole? Type366 { get; set; } + public global::LabelStudio.ProjectLabelConfig? Type366 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleRequest? Type367 { get; set; } + public global::LabelStudio.ProjectLabelConfigRequest? Type367 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetItem? Type368 { get; set; } + public global::LabelStudio.ProjectMember? Type368 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTaskItem? Type369 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRequest? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplate? Type371 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type371 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplateRequest? Type372 { get; set; } + public global::LabelStudio.ProjectMemberRequest? Type372 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorage? Type373 { get; set; } + public global::LabelStudio.ProjectReimport? Type373 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorage? Type374 { get; set; } + public global::LabelStudio.ProjectRole? Type374 { get; set; } /// /// /// - public global::LabelStudio.RefinePromptRequestRequest? Type375 { get; set; } + public global::LabelStudio.ProjectRoleRequest? Type375 { get; set; } /// /// /// - public global::LabelStudio.RefinedPromptResponse? Type376 { get; set; } + public global::LabelStudio.ProjectSubsetItem? Type376 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersion? Type377 { get; set; } + public global::LabelStudio.ProjectSubsetTaskItem? Type377 { get; set; } /// /// /// - public global::LabelStudio.RequeueRejectedTasksModeEnum? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::LabelStudio.ReviewCriteriaEnum? Type379 { get; set; } + public global::LabelStudio.ProjectTemplate? Type379 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsSamplingEnum? Type380 { get; set; } + public global::LabelStudio.ProjectTemplateRequest? Type380 { get; set; } /// /// /// - public global::LabelStudio.RevokeInviteRequest? Type381 { get; set; } + public global::LabelStudio.RedisExportStorage? Type381 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorage? Type382 { get; set; } + public global::LabelStudio.RedisImportStorage? Type382 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorageRequest? Type383 { get; set; } + public global::LabelStudio.RefinePromptRequestRequest? Type383 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorage? Type384 { get; set; } + public global::LabelStudio.RefinedPromptResponse? Type384 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorage? Type385 { get; set; } + public global::LabelStudio.ThirdPartyModelVersion? Type385 { get; set; } /// /// /// - public global::LabelStudio.SamlSettings? Type386 { get; set; } + public global::LabelStudio.RequeueRejectedTasksModeEnum? Type386 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdate? Type387 { get; set; } + public global::LabelStudio.ReviewCriteriaEnum? Type387 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type388 { get; set; } + public global::LabelStudio.ReviewSettingsSamplingEnum? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type389 { get; set; } + public global::LabelStudio.RevokeInviteRequest? Type389 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdateRequest? Type390 { get; set; } + public global::LabelStudio.S3DatasetStorage? Type390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type391 { get; set; } + public global::LabelStudio.S3DatasetStorageRequest? Type391 { get; set; } /// /// /// - public global::LabelStudio.ScimSettings? Type392 { get; set; } + public global::LabelStudio.S3ExportStorage? Type392 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdate? Type393 { get; set; } + public global::LabelStudio.S3ImportStorage? Type393 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdateRequest? Type394 { get; set; } + public global::LabelStudio.SamlSettings? Type394 { get; set; } /// /// /// - public global::LabelStudio.SendInviteRequest? Type395 { get; set; } + public global::System.Collections.Generic.IList? Type395 { get; set; } /// /// /// - public global::LabelStudio.SerializationOption? Type396 { get; set; } + public global::System.Collections.Generic.IList>? Type396 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionRequest? Type397 { get; set; } + public global::LabelStudio.SamlSettingsUpdate? Type397 { get; set; } /// /// /// - public global::LabelStudio.SessionTimeoutPolicy? Type398 { get; set; } + public global::LabelStudio.SamlSettingsUpdateRequest? Type398 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillCancelResponse? Type399 { get; set; } + public global::System.Collections.Generic.IList? Type399 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItem? Type400 { get; set; } + public global::LabelStudio.ScimSettings? Type400 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItemResponse? Type401 { get; set; } + public global::LabelStudio.ScimSettingsUpdate? Type401 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillProgress? Type402 { get; set; } + public global::LabelStudio.ScimSettingsUpdateRequest? Type402 { get; set; } /// /// /// - public global::LabelStudio.StateTriggeredBy? Type403 { get; set; } + public global::LabelStudio.SendInviteRequest? Type403 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobListResponse? Type404 { get; set; } + public global::LabelStudio.SerializationOption? Type404 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type405 { get; set; } + public global::LabelStudio.SerializationOptionRequest? Type405 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillOrgStatus? Type406 { get; set; } + public global::LabelStudio.SessionTimeoutPolicy? Type406 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillResponse? Type407 { get; set; } + public global::LabelStudio.StateBackfillCancelResponse? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type408 { get; set; } + public global::LabelStudio.StateBackfillJobItem? Type408 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillStatusResponse? Type409 { get; set; } + public global::LabelStudio.StateBackfillJobItemResponse? Type409 { get; set; } /// /// /// - public global::LabelStudio.TriggeredBy? Type410 { get; set; } + public global::LabelStudio.StateBackfillProgress? Type410 { get; set; } /// /// /// - public global::LabelStudio.TaskAgreementMatrixResponse? Type411 { get; set; } + public global::LabelStudio.StateTriggeredBy? Type411 { get; set; } /// /// /// - public global::LabelStudio.TaskAssignment? Type412 { get; set; } + public global::LabelStudio.StateBackfillJobListResponse? Type412 { get; set; } /// /// /// - public global::LabelStudio.TypeEnum? Type413 { get; set; } + public global::System.Collections.Generic.IList? Type413 { get; set; } /// /// /// - public global::LabelStudio.TaskEvent? Type414 { get; set; } + public global::LabelStudio.StateBackfillOrgStatus? Type414 { get; set; } /// /// /// - public global::LabelStudio.TaskEventRequest? Type415 { get; set; } + public global::LabelStudio.StateBackfillResponse? Type415 { get; set; } /// /// /// - public global::LabelStudio.TaskSimple? Type416 { get; set; } + public global::System.Collections.Generic.IList? Type416 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type417 { get; set; } + public global::LabelStudio.StateBackfillStatusResponse? Type417 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type418 { get; set; } + public global::LabelStudio.TriggeredBy? Type418 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersionRequest? Type419 { get; set; } + public global::LabelStudio.TaskAgreementMatrixResponse? Type419 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshRequest? Type420 { get; set; } + public global::LabelStudio.TaskAssignment? Type420 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshResponse? Type421 { get; set; } + public global::LabelStudio.TypeEnum? Type421 { get; set; } /// /// /// - public global::LabelStudio.TokenRotateResponse? Type422 { get; set; } + public global::LabelStudio.TaskEvent? Type422 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type423 { get; set; } + public global::LabelStudio.TaskEventRequest? Type423 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type424 { get; set; } + public global::LabelStudio.TaskSimple? Type424 { get; set; } /// /// /// - public global::LabelStudio.VersionResponse? Type425 { get; set; } + public global::System.Collections.Generic.IList? Type425 { get; set; } /// /// /// - public global::LabelStudio.View? Type426 { get; set; } + public global::System.Collections.Generic.IList? Type426 { get; set; } /// /// /// - public global::LabelStudio.ViewOrderRequest? Type427 { get; set; } + public global::LabelStudio.ThirdPartyModelVersionRequest? Type427 { get; set; } /// /// /// - public global::LabelStudio.Webhook? Type428 { get; set; } + public global::LabelStudio.TokenRefreshRequest? Type428 { get; set; } /// /// /// - public global::LabelStudio.WebhookRequest? Type429 { get; set; } + public global::LabelStudio.TokenRefreshResponse? Type429 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdate? Type430 { get; set; } + public global::LabelStudio.TokenRotateResponse? Type430 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdateRequest? Type431 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type431 { get; set; } /// /// /// - public global::LabelStudio.WhoAmILseFields? Type432 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type432 { get; set; } /// /// /// - public global::LabelStudio.WhoAmIUser? Type433 { get; set; } + public global::LabelStudio.VersionResponse? Type433 { get; set; } /// /// /// - public global::LabelStudio.Workspace? Type434 { get; set; } + public global::LabelStudio.View? Type434 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type435 { get; set; } + public global::LabelStudio.ViewOrderRequest? Type435 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreate? Type436 { get; set; } + public global::LabelStudio.Webhook? Type436 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreateRequest? Type437 { get; set; } + public global::LabelStudio.WebhookRequest? Type437 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberList? Type438 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdate? Type438 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceProjectsRequest? Type439 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdateRequest? Type439 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceRequest? Type440 { get; set; } + public global::LabelStudio.WhoAmILseFields? Type440 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsPartialUpdateRequest? Type441 { get; set; } + public global::LabelStudio.WhoAmIUser? Type441 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequest? Type442 { get; set; } + public global::LabelStudio.Workspace? Type442 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFilters? Type443 { get; set; } + public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type443 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction? Type444 { get; set; } + public global::LabelStudio.WorkspaceMemberCreate? Type444 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type445 { get; set; } + public global::LabelStudio.WorkspaceMemberCreateRequest? Type445 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItem? Type446 { get; set; } + public global::LabelStudio.WorkspaceMemberList? Type446 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter? Type447 { get; set; } + public global::LabelStudio.WorkspaceProjectsRequest? Type447 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator? Type448 { get; set; } + public global::LabelStudio.WorkspaceRequest? Type448 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type449 { get; set; } + public global::LabelStudio.ApiAnnotationsPartialUpdateRequest? Type449 { get; set; } /// /// /// - public float? Type450 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequest? Type450 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type451 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFilters? Type451 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestOrderingItem? Type452 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction? Type452 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type453 { get; set; } + public global::System.Collections.Generic.IList? Type453 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse? Type454 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItem? Type454 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue? Type455 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter? Type455 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequest? Type456 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator? Type456 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestData? Type457 { get; set; } + public global::LabelStudio.OneOf? Type457 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFilters? Type458 { get; set; } + public float? Type458 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction? Type459 { get; set; } + public global::System.Collections.Generic.IList? Type459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type460 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestOrderingItem? Type460 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem? Type461 { get; set; } + public global::LabelStudio.OneOf? Type461 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter? Type462 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse? Type462 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator? Type463 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequest? Type464 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem? Type465 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestData? Type465 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequest? Type466 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFilters? Type466 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestData? Type467 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction? Type467 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction? Type469 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter? Type470 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem? Type471 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator? Type471 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter? Type472 { get; set; } + public global::System.Collections.Generic.IList? Type472 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator? Type473 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type474 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequest? Type474 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem? Type475 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestData? Type475 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequest? Type476 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters? Type476 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestData? Type477 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction? Type477 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFilters? Type478 { get; set; } + public global::System.Collections.Generic.IList? Type478 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction? Type479 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem? Type479 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type480 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter? Type480 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem? Type481 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator? Type481 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter? Type482 { get; set; } + public global::System.Collections.Generic.IList? Type482 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator? Type483 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem? Type483 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type484 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequest? Type484 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem? Type485 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestData? Type485 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type486 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFilters? Type486 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest? Type487 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage? Type489 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem? Type489 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole? Type490 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter? Type490 { get; set; } /// /// /// - public global::LabelStudio.ApiMlCreateRequest? Type491 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator? Type491 { get; set; } /// /// /// - public global::LabelStudio.ApiMlCreateRequestAuthMethod? Type492 { get; set; } + public global::System.Collections.Generic.IList? Type492 { get; set; } /// /// /// - public global::LabelStudio.ApiMlPartialUpdateRequest? Type493 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem? Type493 { get; set; } /// /// /// - public global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod? Type494 { get; set; } + public global::System.Collections.Generic.IList? Type494 { get; set; } /// /// /// - public global::LabelStudio.ApiMlTrainCreateRequest? Type495 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest? Type495 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsCreateRequest? Type496 { get; set; } + public global::System.Collections.Generic.IList? Type496 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsPartialUpdateRequest? Type497 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage? Type497 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsUpdateRequest? Type498 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole? Type498 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest? Type499 { get; set; } + public global::LabelStudio.ApiMlCreateRequest? Type499 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type500 { get; set; } + public global::LabelStudio.ApiMlCreateRequestAuthMethod? Type500 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest? Type501 { get; set; } + public global::LabelStudio.ApiMlPartialUpdateRequest? Type501 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters? Type502 { get; set; } + public global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod? Type502 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction? Type503 { get; set; } + public global::LabelStudio.ApiMlTrainCreateRequest? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type504 { get; set; } + public global::LabelStudio.ApiPredictionsCreateRequest? Type504 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem? Type505 { get; set; } + public global::LabelStudio.ApiPredictionsPartialUpdateRequest? Type505 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter? Type506 { get; set; } + public global::LabelStudio.ApiPredictionsUpdateRequest? Type506 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator? Type507 { get; set; } + public global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest? Type507 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type508 { get; set; } + public global::System.Collections.Generic.IList? Type508 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type509 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest? Type509 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type510 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters? Type510 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type511 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction? Type511 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type512 { get; set; } + public global::System.Collections.Generic.IList? Type512 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type513 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem? Type513 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type514 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter? Type514 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzureCreateRequest? Type515 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator? Type515 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type516 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type516 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type517 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type517 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type518 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type518 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type519 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type519 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type520 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type520 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type521 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type521 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type522 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type522 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type523 { get; set; } + public global::LabelStudio.ApiStoragesAzureCreateRequest? Type523 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type524 { get; set; } + public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type524 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type525 { get; set; } + public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type525 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type526 { get; set; } + public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type526 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type527 { get; set; } + public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type527 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type528 { get; set; } + public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type528 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type529 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type529 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type530 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type530 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type531 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type531 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type532 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type532 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsCreateRequest? Type533 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type533 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type534 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type534 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type535 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type535 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type536 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type536 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type537 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type537 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type538 { get; set; } + public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type538 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisCreateRequest? Type539 { get; set; } + public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type539 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type540 { get; set; } + public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type540 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type541 { get; set; } + public global::LabelStudio.ApiStoragesGcsCreateRequest? Type541 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3CreateRequest? Type542 { get; set; } + public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type542 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type543 { get; set; } + public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type543 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type544 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type544 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type545 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type545 { get; set; } /// /// /// - public global::LabelStudio.ApiUsersCreateRequest? Type546 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type546 { get; set; } /// /// /// - public global::LabelStudio.ApiUsersPartialUpdateRequest? Type547 { get; set; } + public global::LabelStudio.ApiStoragesRedisCreateRequest? Type547 { get; set; } /// /// /// - public global::LabelStudio.ApiActivityLogsListMethod? Type548 { get; set; } + public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type548 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateId? Type549 { get; set; } + public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type549 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type550 { get; set; } + public global::LabelStudio.ApiStoragesS3CreateRequest? Type550 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type551 { get; set; } + public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type551 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type552 { get; set; } + public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type552 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksListFields? Type553 { get; set; } + public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type554 { get; set; } + public global::LabelStudio.ApiUsersCreateRequest? Type554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type555 { get; set; } + public global::LabelStudio.ApiUsersPartialUpdateRequest? Type555 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type556 { get; set; } + public global::LabelStudio.ApiActivityLogsListMethod? Type556 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type557 { get; set; } + public global::LabelStudio.ApiDmActionsCreateId? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type558 { get; set; } + public global::LabelStudio.ApiOrganizationsMembershipsListScope? Type558 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type559 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type559 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type560 { get; set; } + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type560 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type561 { get; set; } + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type562 { get; set; } + public global::LabelStudio.ApiTasksListFields? Type562 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type563 { get; set; } + public global::System.Collections.Generic.IList? Type563 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type564 { get; set; } + public global::System.Collections.Generic.IList? Type564 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type565 { get; set; } + public global::System.Collections.Generic.IList? Type565 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type566 { get; set; } + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type566 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type568 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type568 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type569 { get; set; } + public global::System.Collections.Generic.IList? Type569 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type570 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::System.Collections.Generic.IList? Type571 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type572 { get; set; } + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type572 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type573 { get; set; } + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type573 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type574 { get; set; } + public global::System.Collections.Generic.IList? Type574 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::System.Collections.Generic.IList? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::System.Collections.Generic.IList? Type577 { get; set; } /// /// /// - public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::System.Collections.Generic.IList? Type579 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::System.Collections.Generic.IList? Type581 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type582 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type582 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type583 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type583 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type584 { get; set; } + public global::LabelStudio.OneOf>? Type584 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type586 { get; set; } + public global::System.Collections.Generic.IList? Type586 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type587 { get; set; } + public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::System.Collections.Generic.IList? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type589 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type590 { get; set; } + public global::System.Collections.Generic.IList? Type590 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type591 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type593 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type593 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type594 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type594 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type595 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type595 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type596 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::System.Collections.Generic.IList? Type597 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type599 { get; set; } + public global::System.Collections.Generic.IList? Type599 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type600 { get; set; } + public global::System.Collections.Generic.IList? Type600 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type602 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type602 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type603 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type603 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type604 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type604 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type605 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type605 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type606 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type606 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type607 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type607 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type609 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type609 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type610 { get; set; } + public global::System.Collections.Generic.IList? Type610 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type611 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type611 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type612 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type612 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type613 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type613 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type614 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type614 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type615 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type615 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type616 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type616 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type617 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type617 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type618 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type618 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type619 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type619 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type620 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type620 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type621 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type621 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type622 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type622 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type623 { get; set; } + public global::LabelStudio.OneOf>? Type623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type624 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type624 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type625 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type625 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type626 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type626 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type627 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type627 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type628 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type628 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type629 { get; set; } + public global::System.Collections.Generic.IList? Type629 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type630 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type630 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type631 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type632 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::System.Collections.Generic.IList? Type633 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type634 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type637 { get; set; } + public global::System.Collections.Generic.IList? Type637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type638 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type639 { get; set; } + public global::System.Collections.Generic.IList? Type639 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type640 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type640 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type641 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type641 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type642 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type642 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type643 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type643 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type644 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::System.Collections.Generic.IList? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::System.Collections.Generic.IList? Type646 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type648 { get; set; } + public global::System.Collections.Generic.IList? Type648 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type649 { get; set; } + public global::System.Collections.Generic.IList? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::System.Collections.Generic.IList? Type650 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type651 { get; set; } + public global::System.Collections.Generic.IList? Type651 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type652 { get; set; } + public global::System.Collections.Generic.IList? Type652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type653 { get; set; } + public global::System.Collections.Generic.IList? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::System.Collections.Generic.IList? Type654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type655 { get; set; } + public global::System.Collections.Generic.IList? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::System.Collections.Generic.IList? Type660 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type661 { get; set; } + public global::System.Collections.Generic.IList? Type661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type663 { get; set; } + public global::System.Collections.Generic.IList? Type663 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type664 { get; set; } + public global::System.Collections.Generic.IList? Type664 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type665 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type665 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type667 { get; set; } + public global::System.Collections.Generic.IList? Type667 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type672 { get; set; } + public global::System.Collections.Generic.IList? Type672 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type674 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type674 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type676 { get; set; } + public global::System.Collections.Generic.IList? Type676 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type678 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type679 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type680 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type680 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type681 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type681 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type682 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type683 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type684 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type685 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type686 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type687 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type688 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type689 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type690 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type691 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type692 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type693 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type694 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type695 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type696 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type697 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// @@ -3237,78 +3297,86 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType119 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs index 7b63192..8073774 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class JwtSettingsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetRequest( @@ -33,9 +52,15 @@ partial void ProcessGetResponseContent( PrepareGetArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/jwt/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs index bb0708b..cf5714c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class JwtSettingsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LSEJWTSettingsRequest request); @@ -41,9 +60,15 @@ partial void ProcessUpdateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/jwt/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs index 57bd4d9..7f8ffd9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JwtSettingsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class JwtSettingsClient : global::LabelStudio.IJwtSettings /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Authorizations.Bearer.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Authorizations.Bearer.g.cs index b12e7ae..cb3f087 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Authorizations.Bearer.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Authorizations.Bearer.g.cs @@ -5,13 +5,23 @@ namespace LabelStudio { public sealed partial class LabelStudioClient { + /// public void AuthorizeUsingBearer( string apiKey) { apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - Authorizations.Clear(); + for (var i = Authorizations.Count - 1; i >= 0; i--) + { + var __authorization = Authorizations[i]; + if (__authorization.Type == "Http" && + __authorization.Name == "Bearer") + { + Authorizations.RemoveAt(i); + } + } + Authorizations.Add(new global::LabelStudio.EndPointAuthorization { Type = "Http", diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Constructors.Bearer.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Constructors.Bearer.g.cs index 446c8c2..a1eba4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Constructors.Bearer.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.Constructors.Bearer.g.cs @@ -6,6 +6,7 @@ namespace LabelStudio public sealed partial class LabelStudioClient { /// + public LabelStudioClient( string apiKey, global::System.Net.Http.HttpClient? httpClient = null, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs index 9b54399..102f28a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs @@ -13,7 +13,7 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; @@ -487,6 +487,15 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public StorageGcsSaClient StorageGcsSa => new StorageGcsSaClient(HttpClient, authorizations: Authorizations) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs index b0666a0..4e86dfe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Labels2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -51,13 +70,19 @@ partial void ProcessCreate2ResponseContent( page: ref page, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/labels/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddOptionalParameter("page", page?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Delete2.g.cs index 74cd7b5..5bbbba4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Labels2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/labels/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs index 7c26f42..5ead70c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Labels2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -39,9 +58,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/labels/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs index f9344d0..1f220da 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Labels2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, page: ref page); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/labels/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddOptionalParameter("page", page?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs index 4e81a71..7019865 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Labels2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/labels/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs index 1acc98d..9ad3885 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Labels2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Labels2Client : global::LabelStudio.ILabels2Client, /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs index 9ba68e4..f4c4911 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LabelLinkRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/label_links/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Delete.g.cs index dab2560..dc8fa01 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -35,9 +54,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/label_links/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -47,7 +72,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs index f3b44ef..4891256 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/label_links/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs index 042ab67..0e5c5b7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? page); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, page: ref page); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/label_links/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("page", page?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs index 58e2d7a..8337416 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -48,9 +67,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/label_links/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -60,7 +85,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.UpdateMany.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.UpdateMany.g.cs index f7363af..b2d5a0a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.UpdateMany.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.UpdateMany.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LabelsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateManySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateManySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateManySecurityRequirement0, + }; partial void PrepareUpdateManyArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareUpdateManyRequest( @@ -29,9 +48,15 @@ partial void ProcessUpdateManyResponse( PrepareUpdateManyArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateManySecurityRequirements, + operationName: "UpdateManyAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/labels/bulk", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -41,7 +66,7 @@ partial void ProcessUpdateManyResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs index fdb6e29..4cd28af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class LabelsClient : global::LabelStudio.ILabelsClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index b60b73e..57ddd39 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class LlmClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiLlmOpenaiChatCompletionsCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiLlmOpenaiChatCompletionsCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiLlmOpenaiChatCompletionsCreateSecurityRequirement0, + }; partial void PrepareApiLlmOpenaiChatCompletionsCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLlmOpenaiChatCompletionsCreateSecurityRequirements, + operationName: "ApiLlmOpenaiChatCompletionsCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/llm/openai/chat/completions", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs index c6a29a2..2d1a3cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class LlmClient : global::LabelStudio.ILlmClient, global:: /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs index 1aed0aa..7c6dd1c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiMlCreateRequest request); @@ -46,9 +65,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/ml/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Delete.g.cs index 4f896f0..25382bd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -37,9 +56,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -49,7 +74,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs index c9ad9de..ebbc95b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -42,9 +61,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -54,7 +79,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs index b68eae7..4ca2e09 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? project); @@ -42,12 +61,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/ml/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -57,7 +82,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs index 04ac69e..09a0012 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.ListModelVersions.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListModelVersionsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListModelVersionsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListModelVersionsSecurityRequirement0, + }; partial void PrepareListModelVersionsArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessListModelVersionsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListModelVersionsSecurityRequirements, + operationName: "ListModelVersionsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}/versions", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessListModelVersionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictAllTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictAllTasks.g.cs index a7b7409..4520db8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictAllTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictAllTasks.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_PredictAllTasksSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_PredictAllTasksSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_PredictAllTasksSecurityRequirement0, + }; partial void PreparePredictAllTasksArguments( global::System.Net.Http.HttpClient httpClient, ref int? batchSize, @@ -46,12 +65,18 @@ partial void ProcessPredictAllTasksResponse( batchSize: ref batchSize, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PredictAllTasksSecurityRequirements, + operationName: "PredictAllTasksAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}/predict", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("batch_size", batchSize?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -61,7 +86,7 @@ partial void ProcessPredictAllTasksResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs index c72802f..75a12e9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.PredictInteractive.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_PredictInteractiveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_PredictInteractiveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_PredictInteractiveSecurityRequirement0, + }; partial void PreparePredictInteractiveArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -44,9 +63,15 @@ partial void ProcessPredictInteractiveResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PredictInteractiveSecurityRequirements, + operationName: "PredictInteractiveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}/interactive-annotating", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessPredictInteractiveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs index 094ab25..561eb4e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.TestPredict.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_TestPredictSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_TestPredictSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_TestPredictSecurityRequirement0, + }; partial void PrepareTestPredictArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -42,9 +61,15 @@ partial void ProcessTestPredictResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TestPredictSecurityRequirements, + operationName: "TestPredictAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}/predict/test", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessTestPredictResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs index c4ee5ba..834c9a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Train.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_TrainSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_TrainSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_TrainSecurityRequirement0, + }; partial void PrepareTrainArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -45,9 +64,15 @@ partial void ProcessTrainResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TrainSecurityRequirements, + operationName: "TrainAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}/train", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -57,7 +82,7 @@ partial void ProcessTrainResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs index 4d1091b..fb0b9a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class MlClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -50,9 +69,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/ml/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -62,7 +87,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs index b47c068..15c59c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.MlClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class MlClient : global::LabelStudio.IMlClient, global::Sy /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs index 7af1451..718cf24 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.ApiModelProviderConnectionsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProviderConnectionClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiModelProviderConnectionsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiModelProviderConnectionsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiModelProviderConnectionsUpdateSecurityRequirement0, + }; partial void PrepareApiModelProviderConnectionsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -52,9 +71,15 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiModelProviderConnectionsUpdateSecurityRequirements, + operationName: "ApiModelProviderConnectionsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/model-provider-connections/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -64,7 +89,7 @@ partial void ProcessApiModelProviderConnectionsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs index eb6320c..c866a7d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProviderConnectionClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ModelProviderConnectionClient : global::LabelStudio. /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs index 5b79ba5..7ff9c5d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ModelProviderConnectionRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/model-provider-connections/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Delete.g.cs index 8df548e..1d0c2d9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/model-provider-connections/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs index 66f730c..2e3e0bd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/model-provider-connections/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs index 9c5300f..8eff5a5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -44,12 +63,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/model-provider-connections/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs index 6bea958..0954bbc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.ListModelProviderChoices.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListModelProviderChoicesSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListModelProviderChoicesSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListModelProviderChoicesSecurityRequirement0, + }; partial void PrepareListModelProviderChoicesArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareListModelProviderChoicesRequest( @@ -39,9 +58,15 @@ partial void ProcessListModelProviderChoicesResponseContent( PrepareListModelProviderChoicesArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListModelProviderChoicesSecurityRequirements, + operationName: "ListModelProviderChoicesAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/model-provider-connections/provider-choices", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessListModelProviderChoicesResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs index 1c5c0c4..9ab7e3e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ModelProvidersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/model-provider-connections/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs index 2e54633..9777670 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ModelProvidersClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ModelProvidersClient : global::LabelStudio.IModelPro /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiOrganizationsMembershipsListScope.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiOrganizationsMembershipsListScope.g.cs new file mode 100644 index 0000000..1cc9692 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiOrganizationsMembershipsListScope.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiOrganizationsMembershipsListScope + { + /// + /// + /// + Accessible, + /// + /// + /// + All, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiOrganizationsMembershipsListScopeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiOrganizationsMembershipsListScope value) + { + return value switch + { + ApiOrganizationsMembershipsListScope.Accessible => "accessible", + ApiOrganizationsMembershipsListScope.All => "all", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiOrganizationsMembershipsListScope? ToEnum(string value) + { + return value switch + { + "accessible" => ApiOrganizationsMembershipsListScope.Accessible, + "all" => ApiOrganizationsMembershipsListScope.All, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.Json.g.cs new file mode 100644 index 0000000..502746c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiProjectsCustomFunctionLogsRetrieveResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse), + jsonSerializerContext) as global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiProjectsCustomFunctionLogsRetrieveResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.g.cs new file mode 100644 index 0000000..03676a0 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionLogsRetrieveResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiProjectsCustomFunctionLogsRetrieveResponse + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.Json.g.cs new file mode 100644 index 0000000..91a6366 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiProjectsCustomFunctionRetrieveResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse), + jsonSerializerContext) as global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.g.cs new file mode 100644 index 0000000..f1eb0a8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiProjectsCustomFunctionRetrieveResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ApiProjectsCustomFunctionRetrieveResponseStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiProjectsCustomFunctionRetrieveResponse( + string code, + global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus status) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiProjectsCustomFunctionRetrieveResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs new file mode 100644 index 0000000..da68836 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsCustomFunctionRetrieveResponseStatus.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiProjectsCustomFunctionRetrieveResponseStatus + { + /// + /// + /// + Active, + /// + /// + /// + Error, + /// + /// + /// + Failed, + /// + /// + /// + NotDeployed, + /// + /// + /// + NotFound, + /// + /// + /// + Pending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiProjectsCustomFunctionRetrieveResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiProjectsCustomFunctionRetrieveResponseStatus value) + { + return value switch + { + ApiProjectsCustomFunctionRetrieveResponseStatus.Active => "Active", + ApiProjectsCustomFunctionRetrieveResponseStatus.Error => "Error", + ApiProjectsCustomFunctionRetrieveResponseStatus.Failed => "Failed", + ApiProjectsCustomFunctionRetrieveResponseStatus.NotDeployed => "NotDeployed", + ApiProjectsCustomFunctionRetrieveResponseStatus.NotFound => "NotFound", + ApiProjectsCustomFunctionRetrieveResponseStatus.Pending => "Pending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiProjectsCustomFunctionRetrieveResponseStatus? ToEnum(string value) + { + return value switch + { + "Active" => ApiProjectsCustomFunctionRetrieveResponseStatus.Active, + "Error" => ApiProjectsCustomFunctionRetrieveResponseStatus.Error, + "Failed" => ApiProjectsCustomFunctionRetrieveResponseStatus.Failed, + "NotDeployed" => ApiProjectsCustomFunctionRetrieveResponseStatus.NotDeployed, + "NotFound" => ApiProjectsCustomFunctionRetrieveResponseStatus.NotFound, + "Pending" => ApiProjectsCustomFunctionRetrieveResponseStatus.Pending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.Json.g.cs new file mode 100644 index 0000000..d2c6c7a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiProjectsGcpCustomFunctionRetrieveResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse), + jsonSerializerContext) as global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.g.cs new file mode 100644 index 0000000..5b64092 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiProjectsGcpCustomFunctionRetrieveResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ApiProjectsGcpCustomFunctionRetrieveResponseStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus Status { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiProjectsGcpCustomFunctionRetrieveResponse( + string code, + global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus status) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Status = status; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiProjectsGcpCustomFunctionRetrieveResponse() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs new file mode 100644 index 0000000..e569c24 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiProjectsGcpCustomFunctionRetrieveResponseStatus.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public enum ApiProjectsGcpCustomFunctionRetrieveResponseStatus + { + /// + /// + /// + Active, + /// + /// + /// + Error, + /// + /// + /// + Failed, + /// + /// + /// + NotDeployed, + /// + /// + /// + NotFound, + /// + /// + /// + Pending, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApiProjectsGcpCustomFunctionRetrieveResponseStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApiProjectsGcpCustomFunctionRetrieveResponseStatus value) + { + return value switch + { + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Active => "Active", + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Error => "Error", + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Failed => "Failed", + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.NotDeployed => "NotDeployed", + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.NotFound => "NotFound", + ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Pending => "Pending", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApiProjectsGcpCustomFunctionRetrieveResponseStatus? ToEnum(string value) + { + return value switch + { + "Active" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Active, + "Error" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Error, + "Failed" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Failed, + "NotDeployed" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.NotDeployed, + "NotFound" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.NotFound, + "Pending" => ApiProjectsGcpCustomFunctionRetrieveResponseStatus.Pending, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.Json.g.cs new file mode 100644 index 0000000..ad2ab8b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CustomFunctionCodeRequestRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CustomFunctionCodeRequestRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CustomFunctionCodeRequestRequest), + jsonSerializerContext) as global::LabelStudio.CustomFunctionCodeRequestRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.CustomFunctionCodeRequestRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.CustomFunctionCodeRequestRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CustomFunctionCodeRequestRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.g.cs new file mode 100644 index 0000000..897a33e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CustomFunctionCodeRequestRequest.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CustomFunctionCodeRequestRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomFunctionCodeRequestRequest( + string code) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + } + + /// + /// Initializes a new instance of the class. + /// + public CustomFunctionCodeRequestRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs index 8c5e0bb..c075b12 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.DefaultRole.g.cs @@ -77,6 +77,12 @@ public sealed partial class DefaultRole [global::System.Text.Json.Serialization.JsonRequired] public required int Organization { get; set; } + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// + [global::System.Text.Json.Serialization.JsonPropertyName("react_code_settings")] + public object? ReactCodeSettings { get; set; } + /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -127,6 +133,9 @@ public sealed partial class DefaultRole /// /// Set to current time to disable the label stream navigation for this organization. This will prevent users from going back in the label stream to view previous labels. /// + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -144,6 +153,7 @@ public DefaultRole( string? externalId, bool? extraDataOnActivityLogs, global::System.DateTime? labelStreamNavigationDisabledAt, + object? reactCodeSettings, global::System.DateTime? readOnlyQuickViewEnabledAt) { this.AnnotatorReviewerFirewallEnabledAt = annotatorReviewerFirewallEnabledAt; @@ -156,6 +166,7 @@ public DefaultRole( this.ExtraDataOnActivityLogs = extraDataOnActivityLogs; this.LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt; this.Organization = organization; + this.ReactCodeSettings = reactCodeSettings; this.ReadOnlyQuickViewEnabledAt = readOnlyQuickViewEnabledAt; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.Json.g.cs new file mode 100644 index 0000000..e79814b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class GCPCustomFunctionUpdateRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.GCPCustomFunctionUpdateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.GCPCustomFunctionUpdateRequest), + jsonSerializerContext) as global::LabelStudio.GCPCustomFunctionUpdateRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.GCPCustomFunctionUpdateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.GCPCustomFunctionUpdateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCPCustomFunctionUpdateRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.g.cs new file mode 100644 index 0000000..e9448cb --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCPCustomFunctionUpdateRequest.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Serializer for updating GCP Cloud Function custom metric. + /// + public sealed partial class GCPCustomFunctionUpdateRequest + { + /// + /// The Python code for the custom metric function. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The GCP project ID. Uses default if not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + public string? Project { get; set; } + + /// + /// The GCP region for the Cloud Function. Uses default if not provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The Python code for the custom metric function. + /// + /// + /// The GCP project ID. Uses default if not provided. + /// + /// + /// The GCP region for the Cloud Function. Uses default if not provided. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GCPCustomFunctionUpdateRequest( + string code, + string? project, + string? region) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Project = project; + this.Region = region; + } + + /// + /// Initializes a new instance of the class. + /// + public GCPCustomFunctionUpdateRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.Json.g.cs new file mode 100644 index 0000000..3d619d6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class GCSSAExportStorage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.GCSSAExportStorage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.GCSSAExportStorage), + jsonSerializerContext) as global::LabelStudio.GCSSAExportStorage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.GCSSAExportStorage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.GCSSAExportStorage), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSSAExportStorage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.g.cs new file mode 100644 index 0000000..e2dae62 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorage.g.cs @@ -0,0 +1,273 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class GCSSAExportStorage + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Deletion from storage enabled + /// + [global::System.Text.Json.Serialization.JsonPropertyName("can_delete_objects")] + public bool? CanDeleteObjects { get; set; } + + /// + /// Creation time
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime CreatedAt { get; set; } = default!; + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } = default!; + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Project { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Default Value: gcs_sa
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = default!; + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// + /// Creation time
+ /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Default Value: gcs_sa
+ /// Included only in responses + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GCSSAExportStorage( + int project, + string? bucket, + bool? canDeleteObjects, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls, + global::System.DateTime createdAt = default!, + int id = default!, + string type = default!) + { + this.Bucket = bucket; + this.CanDeleteObjects = canDeleteObjects; + this.CreatedAt = createdAt; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.Id = id; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Project = project; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.Type = type; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public GCSSAExportStorage() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.Json.g.cs new file mode 100644 index 0000000..1bc7fef --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class GCSSAExportStorageRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.GCSSAExportStorageRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.GCSSAExportStorageRequest), + jsonSerializerContext) as global::LabelStudio.GCSSAExportStorageRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.GCSSAExportStorageRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.GCSSAExportStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSSAExportStorageRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.g.cs new file mode 100644 index 0000000..6ca5bda --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAExportStorageRequest.g.cs @@ -0,0 +1,233 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class GCSSAExportStorageRequest + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Deletion from storage enabled + /// + [global::System.Text.Json.Serialization.JsonPropertyName("can_delete_objects")] + public bool? CanDeleteObjects { get; set; } + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Project { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GCSSAExportStorageRequest( + int project, + string? bucket, + bool? canDeleteObjects, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls) + { + this.Bucket = bucket; + this.CanDeleteObjects = canDeleteObjects; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Project = project; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public GCSSAExportStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.Json.g.cs new file mode 100644 index 0000000..6d5c06a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class GCSSAImportStorage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.GCSSAImportStorage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.GCSSAImportStorage), + jsonSerializerContext) as global::LabelStudio.GCSSAImportStorage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.GCSSAImportStorage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.GCSSAImportStorage), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSSAImportStorage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.g.cs new file mode 100644 index 0000000..7e28f48 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorage.g.cs @@ -0,0 +1,295 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class GCSSAImportStorage + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Creation time
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime CreatedAt { get; set; } = default!; + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } = default!; + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign")] + public bool? Presign { get; set; } + + /// + /// Presigned URLs TTL (in minutes) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] + public int? PresignTtl { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Project { get; set; } + + /// + /// Perform recursive scan over the bucket content + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] + public bool? RecursiveScan { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Default Value: gcs_sa
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = default!; + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// + /// Creation time
+ /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Default Value: gcs_sa
+ /// Included only in responses + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GCSSAImportStorage( + int project, + string? bucket, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + bool? presign, + int? presignTtl, + bool? recursiveScan, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls, + global::System.DateTime createdAt = default!, + int id = default!, + string type = default!) + { + this.Bucket = bucket; + this.CreatedAt = createdAt; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.Id = id; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Presign = presign; + this.PresignTtl = presignTtl; + this.Project = project; + this.RecursiveScan = recursiveScan; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.Type = type; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public GCSSAImportStorage() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.Json.g.cs new file mode 100644 index 0000000..ece0a22 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class GCSSAImportStorageRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.GCSSAImportStorageRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.GCSSAImportStorageRequest), + jsonSerializerContext) as global::LabelStudio.GCSSAImportStorageRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.GCSSAImportStorageRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.GCSSAImportStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.GCSSAImportStorageRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.g.cs new file mode 100644 index 0000000..8bb1046 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.GCSSAImportStorageRequest.g.cs @@ -0,0 +1,255 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class GCSSAImportStorageRequest + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign")] + public bool? Presign { get; set; } + + /// + /// Presigned URLs TTL (in minutes) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] + public int? PresignTtl { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Project { get; set; } + + /// + /// Perform recursive scan over the bucket content + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] + public bool? RecursiveScan { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GCSSAImportStorageRequest( + int project, + string? bucket, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + bool? presign, + int? presignTtl, + bool? recursiveScan, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls) + { + this.Bucket = bucket; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Presign = presign; + this.PresignTtl = presignTtl; + this.Project = project; + this.RecursiveScan = recursiveScan; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public GCSSAImportStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.Json.g.cs new file mode 100644 index 0000000..f58d4ce --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ImportApiRequestData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ImportApiRequestData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ImportApiRequestData2), + jsonSerializerContext) as global::LabelStudio.ImportApiRequestData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ImportApiRequestData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ImportApiRequestData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ImportApiRequestData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.g.cs new file mode 100644 index 0000000..2dd7f27 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ImportApiRequestData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ImportApiRequestData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureDimension.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureDimension.g.cs index 1847618..41b936e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureDimension.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureDimension.g.cs @@ -14,7 +14,7 @@ public sealed partial class LabelDistributionStructureDimension ///
/// default! [global::System.Text.Json.Serialization.JsonPropertyName("choice_keys")] - public string ChoiceKeys { get; set; } = default!; + public global::System.Collections.Generic.IList ChoiceKeys { get; set; } = default!; /// /// Sorted list of choices observed from config and/or created labels. @@ -65,7 +65,7 @@ public LabelDistributionStructureDimension( global::System.Collections.Generic.IList choices, string name, string? type, - string choiceKeys = default!) + global::System.Collections.Generic.IList choiceKeys = default!) { this.ChoiceKeys = choiceKeys; this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices)); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureResponse.g.cs index 713d910..87c912b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureResponse.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LabelDistributionStructureResponse.g.cs @@ -14,7 +14,7 @@ public sealed partial class LabelDistributionStructureResponse /// /// default! [global::System.Text.Json.Serialization.JsonPropertyName("choice_keys")] - public string ChoiceKeys { get; set; } = default!; + public global::System.Collections.Generic.IList ChoiceKeys { get; set; } = default!; /// /// @@ -42,7 +42,7 @@ public sealed partial class LabelDistributionStructureResponse #endif public LabelDistributionStructureResponse( global::System.Collections.Generic.IList dimensions, - string choiceKeys = default!) + global::System.Collections.Generic.IList choiceKeys = default!) { this.ChoiceKeys = choiceKeys; this.Dimensions = dimensions ?? throw new global::System.ArgumentNullException(nameof(dimensions)); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganization.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganization.g.cs index b0afd6b..c73864e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganization.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganization.g.cs @@ -75,6 +75,13 @@ public sealed partial class LseOrganization [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("react_code_settings")] + public string ReactCodeSettings { get; set; } = default!; + /// /// Included only in responses /// @@ -130,6 +137,9 @@ public sealed partial class LseOrganization /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -149,6 +159,7 @@ public LseOrganization( string customScriptsEnabled = default!, string emailNotificationSettings = default!, int id = default!, + string reactCodeSettings = default!, string title = default!, string token = default!) { @@ -161,6 +172,7 @@ public LseOrganization( this.EmbedSettings = embedSettings; this.ExternalId = externalId; this.Id = id; + this.ReactCodeSettings = reactCodeSettings; this.Title = title; this.Token = token; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs index 6438753..89828cc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseOrganizationMemberList.g.cs @@ -49,6 +49,13 @@ public sealed partial class LseOrganizationMemberList [global::System.Text.Json.Serialization.JsonPropertyName("role")] public string Role { get; set; } = default!; + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("role_source")] + public string RoleSource { get; set; } = default!; + /// /// Included only in responses /// @@ -99,6 +106,9 @@ public sealed partial class LseOrganizationMemberList /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -113,6 +123,7 @@ public LseOrganizationMemberList( string concurrency = default!, int id = default!, string role = default!, + string roleSource = default!, global::System.Collections.Generic.IList tags = default!) { this.Concurrency = concurrency; @@ -121,6 +132,7 @@ public LseOrganizationMemberList( this.Id = id; this.Organization = organization; this.Role = role; + this.RoleSource = roleSource; this.Tags = tags; this.User = user ?? throw new global::System.ArgumentNullException(nameof(user)); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParams.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParams.g.cs index 3483d15..69776e5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParams.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParams.g.cs @@ -9,10 +9,10 @@ namespace LabelStudio public sealed partial class LseProjectParams { /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// [global::System.Text.Json.Serialization.JsonPropertyName("annotator_params")] - public object? AnnotatorParams { get; set; } + public global::System.Collections.Generic.Dictionary? AnnotatorParams { get; set; } /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -30,7 +30,7 @@ public sealed partial class LseProjectParams /// Initializes a new instance of the class. /// /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -39,7 +39,7 @@ public sealed partial class LseProjectParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LseProjectParams( - object? annotatorParams, + global::System.Collections.Generic.Dictionary? annotatorParams, bool? useKappa) { this.AnnotatorParams = annotatorParams; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.Json.g.cs new file mode 100644 index 0000000..438324d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseProjectParamsAnnotatorParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseProjectParamsAnnotatorParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseProjectParamsAnnotatorParams), + jsonSerializerContext) as global::LabelStudio.LseProjectParamsAnnotatorParams; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseProjectParamsAnnotatorParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseProjectParamsAnnotatorParams), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseProjectParamsAnnotatorParams; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.g.cs new file mode 100644 index 0000000..a8189f0 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsAnnotatorParams.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. + /// + public sealed partial class LseProjectParamsAnnotatorParams + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequest.g.cs index 71f810d..c00215b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequest.g.cs @@ -9,10 +9,10 @@ namespace LabelStudio public sealed partial class LseProjectParamsRequest { /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// [global::System.Text.Json.Serialization.JsonPropertyName("annotator_params")] - public object? AnnotatorParams { get; set; } + public global::System.Collections.Generic.Dictionary? AnnotatorParams { get; set; } /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -30,7 +30,7 @@ public sealed partial class LseProjectParamsRequest /// Initializes a new instance of the class. /// /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -39,7 +39,7 @@ public sealed partial class LseProjectParamsRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LseProjectParamsRequest( - object? annotatorParams, + global::System.Collections.Generic.Dictionary? annotatorParams, bool? useKappa) { this.AnnotatorParams = annotatorParams; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.Json.g.cs new file mode 100644 index 0000000..708b2b2 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseProjectParamsRequestAnnotatorParams + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseProjectParamsRequestAnnotatorParams? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseProjectParamsRequestAnnotatorParams), + jsonSerializerContext) as global::LabelStudio.LseProjectParamsRequestAnnotatorParams; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseProjectParamsRequestAnnotatorParams? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseProjectParamsRequestAnnotatorParams), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseProjectParamsRequestAnnotatorParams; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.g.cs new file mode 100644 index 0000000..2168fda --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectParamsRequestAnnotatorParams.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. + /// + public sealed partial class LseProjectParamsRequestAnnotatorParams + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.Json.g.cs new file mode 100644 index 0000000..ab16438 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseTaskData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseTaskData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseTaskData2), + jsonSerializerContext) as global::LabelStudio.LseTaskData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseTaskData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseTaskData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseTaskData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.g.cs new file mode 100644 index 0000000..6151d3e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseTaskData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.Json.g.cs new file mode 100644 index 0000000..02ac608 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseTaskRequestData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseTaskRequestData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseTaskRequestData2), + jsonSerializerContext) as global::LabelStudio.LseTaskRequestData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseTaskRequestData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseTaskRequestData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseTaskRequestData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.g.cs new file mode 100644 index 0000000..40b64a3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskRequestData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseTaskRequestData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.Json.g.cs new file mode 100644 index 0000000..990b292 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseTaskSerializerForAnnotatorsData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseTaskSerializerForAnnotatorsData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseTaskSerializerForAnnotatorsData2), + jsonSerializerContext) as global::LabelStudio.LseTaskSerializerForAnnotatorsData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseTaskSerializerForAnnotatorsData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseTaskSerializerForAnnotatorsData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseTaskSerializerForAnnotatorsData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.g.cs new file mode 100644 index 0000000..64e8d35 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForAnnotatorsData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseTaskSerializerForAnnotatorsData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.Json.g.cs new file mode 100644 index 0000000..fa223a5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseTaskSerializerForReviewersData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseTaskSerializerForReviewersData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseTaskSerializerForReviewersData2), + jsonSerializerContext) as global::LabelStudio.LseTaskSerializerForReviewersData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseTaskSerializerForReviewersData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseTaskSerializerForReviewersData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseTaskSerializerForReviewersData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.g.cs new file mode 100644 index 0000000..72756e4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseTaskSerializerForReviewersData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseTaskSerializerForReviewersData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs index 01281ad..b53c8bc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedDefaultRoleRequest.g.cs @@ -76,6 +76,12 @@ public sealed partial class PatchedDefaultRoleRequest [global::System.Text.Json.Serialization.JsonPropertyName("organization")] public int? Organization { get; set; } + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// + [global::System.Text.Json.Serialization.JsonPropertyName("react_code_settings")] + public object? ReactCodeSettings { get; set; } + /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -126,6 +132,9 @@ public sealed partial class PatchedDefaultRoleRequest /// /// A unique integer value identifying this organization. /// + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -143,6 +152,7 @@ public PatchedDefaultRoleRequest( bool? extraDataOnActivityLogs, global::System.DateTime? labelStreamNavigationDisabledAt, int? organization, + object? reactCodeSettings, global::System.DateTime? readOnlyQuickViewEnabledAt) { this.AnnotatorReviewerFirewallEnabledAt = annotatorReviewerFirewallEnabledAt; @@ -155,6 +165,7 @@ public PatchedDefaultRoleRequest( this.ExtraDataOnActivityLogs = extraDataOnActivityLogs; this.LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt; this.Organization = organization; + this.ReactCodeSettings = reactCodeSettings; this.ReadOnlyQuickViewEnabledAt = readOnlyQuickViewEnabledAt; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.Json.g.cs new file mode 100644 index 0000000..42002a6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedGCSSAExportStorageRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedGCSSAExportStorageRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedGCSSAExportStorageRequest), + jsonSerializerContext) as global::LabelStudio.PatchedGCSSAExportStorageRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedGCSSAExportStorageRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedGCSSAExportStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedGCSSAExportStorageRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.g.cs new file mode 100644 index 0000000..0861671 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAExportStorageRequest.g.cs @@ -0,0 +1,232 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PatchedGCSSAExportStorageRequest + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Deletion from storage enabled + /// + [global::System.Text.Json.Serialization.JsonPropertyName("can_delete_objects")] + public bool? CanDeleteObjects { get; set; } + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + public int? Project { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchedGCSSAExportStorageRequest( + string? bucket, + bool? canDeleteObjects, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + int? project, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls) + { + this.Bucket = bucket; + this.CanDeleteObjects = canDeleteObjects; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Project = project; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchedGCSSAExportStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.Json.g.cs new file mode 100644 index 0000000..f566e14 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedGCSSAImportStorageRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedGCSSAImportStorageRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedGCSSAImportStorageRequest), + jsonSerializerContext) as global::LabelStudio.PatchedGCSSAImportStorageRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedGCSSAImportStorageRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedGCSSAImportStorageRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedGCSSAImportStorageRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.g.cs new file mode 100644 index 0000000..7a01657 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedGCSSAImportStorageRequest.g.cs @@ -0,0 +1,254 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PatchedGCSSAImportStorageRequest + { + /// + /// GCS bucket name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bucket")] + public string? Bucket { get; set; } + + /// + /// Cloud storage description + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Google project ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("google_project_id")] + public string? GoogleProjectId { get; set; } + + /// + /// Last sync finished time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync")] + public global::System.DateTime? LastSync { get; set; } + + /// + /// Count of tasks synced last time + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_count")] + public int? LastSyncCount { get; set; } + + /// + /// Last sync job ID + /// + [global::System.Text.Json.Serialization.JsonPropertyName("last_sync_job")] + public string? LastSyncJob { get; set; } + + /// + /// Meta and debug information about storage processes + /// + [global::System.Text.Json.Serialization.JsonPropertyName("meta")] + public object? Meta { get; set; } + + /// + /// GCS bucket prefix + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign")] + public bool? Presign { get; set; } + + /// + /// Presigned URLs TTL (in minutes) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presign_ttl")] + public int? PresignTtl { get; set; } + + /// + /// A unique integer value identifying this project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + public int? Project { get; set; } + + /// + /// Perform recursive scan over the bucket content + /// + [global::System.Text.Json.Serialization.JsonPropertyName("recursive_scan")] + public bool? RecursiveScan { get; set; } + + /// + /// Cloud storage regex for filtering objects + /// + [global::System.Text.Json.Serialization.JsonPropertyName("regex_filter")] + public string? RegexFilter { get; set; } + + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.StatusC5aEnumJsonConverter))] + public global::LabelStudio.StatusC5aEnum? Status { get; set; } + + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("synchronizable")] + public bool? Synchronizable { get; set; } + + /// + /// Service account email to impersonate for GCS access + /// + [global::System.Text.Json.Serialization.JsonPropertyName("target_service_account_email")] + public string? TargetServiceAccountEmail { get; set; } + + /// + /// Cloud storage title + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Traceback report for the last failed sync + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceback")] + public string? Traceback { get; set; } + + /// + /// Interpret objects as BLOBs and generate URLs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_blob_urls")] + public bool? UseBlobUrls { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchedGCSSAImportStorageRequest( + string? bucket, + string? description, + string? googleProjectId, + global::System.DateTime? lastSync, + int? lastSyncCount, + string? lastSyncJob, + object? meta, + string? prefix, + bool? presign, + int? presignTtl, + int? project, + bool? recursiveScan, + string? regexFilter, + global::LabelStudio.StatusC5aEnum? status, + bool? synchronizable, + string? targetServiceAccountEmail, + string? title, + string? traceback, + bool? useBlobUrls) + { + this.Bucket = bucket; + this.Description = description; + this.GoogleProjectId = googleProjectId; + this.LastSync = lastSync; + this.LastSyncCount = lastSyncCount; + this.LastSyncJob = lastSyncJob; + this.Meta = meta; + this.Prefix = prefix; + this.Presign = presign; + this.PresignTtl = presignTtl; + this.Project = project; + this.RecursiveScan = recursiveScan; + this.RegexFilter = regexFilter; + this.Status = status; + this.Synchronizable = synchronizable; + this.TargetServiceAccountEmail = targetServiceAccountEmail; + this.Title = title; + this.Traceback = traceback; + this.UseBlobUrls = useBlobUrls; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchedGCSSAImportStorageRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseOrganizationSerializerUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseOrganizationSerializerUpdateRequest.g.cs index 45412f3..b024d0b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseOrganizationSerializerUpdateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseOrganizationSerializerUpdateRequest.g.cs @@ -49,6 +49,13 @@ public sealed partial class PatchedLseOrganizationSerializerUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("embed_settings")] public object? EmbedSettings { get; set; } + /// + /// ReactCode settings
+ /// Included only in requests + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("react_code_settings")] + public object? ReactCodeSettings { get; set; } + /// /// Organization name
/// Included only in requests @@ -89,6 +96,10 @@ public sealed partial class PatchedLseOrganizationSerializerUpdateRequest /// Public Verification Key and Public Verification Algorithms configuration
/// Included only in requests /// + /// + /// ReactCode settings
+ /// Included only in requests + /// /// /// Organization name
/// Included only in requests @@ -104,6 +115,7 @@ public PatchedLseOrganizationSerializerUpdateRequest( object? emailNotificationSettings, global::System.Collections.Generic.IList>? embedDomains, object? embedSettings, + object? reactCodeSettings, string? title, string? token) { @@ -113,6 +125,7 @@ public PatchedLseOrganizationSerializerUpdateRequest( this.EmailNotificationSettings = emailNotificationSettings; this.EmbedDomains = embedDomains; this.EmbedSettings = embedSettings; + this.ReactCodeSettings = reactCodeSettings; this.Title = title; this.Token = token; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.Json.g.cs new file mode 100644 index 0000000..2c662c8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseTaskRequestData2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseTaskRequestData2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseTaskRequestData2), + jsonSerializerContext) as global::LabelStudio.PatchedLseTaskRequestData2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseTaskRequestData2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseTaskRequestData2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseTaskRequestData2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.g.cs new file mode 100644 index 0000000..c46b40c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseTaskRequestData2.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PatchedLseTaskRequestData2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettings.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettings.g.cs index 7739e45..fd3a4d3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettings.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettings.g.cs @@ -13,9 +13,8 @@ public sealed partial class SamlSettings /// /// Included only in responses /// - /// default! [global::System.Text.Json.Serialization.JsonPropertyName("acs_url")] - public string AcsUrl { get; set; } = default!; + public string? AcsUrl { get; set; } /// /// Organization web domain or domains; use comma separated list with no spaces for multiple. Example:labelstud.io,humansignal.comIMPORTANT: DO NOT PUT COMMON DOMAINS LIKE GMAIL.COM, YAHOO.COM, ETC. IN THIS FIELD @@ -32,16 +31,20 @@ public sealed partial class SamlSettings /// /// Included only in responses /// - /// default! [global::System.Text.Json.Serialization.JsonPropertyName("login_url")] - public string LoginUrl { get; set; } = default!; + public string? LoginUrl { get; set; } /// /// Included only in responses /// - /// default! [global::System.Text.Json.Serialization.JsonPropertyName("logout_url")] - public string LogoutUrl { get; set; } = default!; + public string? LogoutUrl { get; set; } + + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("manual_role_management")] + public bool? ManualRoleManagement { get; set; } /// /// Mapping attributes: user email from SAML request @@ -82,9 +85,8 @@ public sealed partial class SamlSettings /// /// Included only in responses /// - /// default! [global::System.Text.Json.Serialization.JsonPropertyName("metadata_xml_url")] - public string MetadataXmlUrl { get; set; } = default!; + public string? MetadataXmlUrl { get; set; } /// /// Included only in responses @@ -94,16 +96,16 @@ public sealed partial class SamlSettings public string NameidFormat { get; set; } = default!; /// - /// Projects to groups mapping + /// Projects to Groups Mapping. List of objects with project_id, group, role. /// [global::System.Text.Json.Serialization.JsonPropertyName("projects_groups")] - public object? ProjectsGroups { get; set; } + public global::System.Collections.Generic.IList? ProjectsGroups { get; set; } /// - /// Roles to groups mapping + /// Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. /// [global::System.Text.Json.Serialization.JsonPropertyName("roles_groups")] - public object? RolesGroups { get; set; } + public global::System.Collections.Generic.IList>? RolesGroups { get; set; } /// /// @@ -112,10 +114,10 @@ public sealed partial class SamlSettings public string? Token { get; set; } /// - /// Workspaces to groups mapping + /// Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. /// [global::System.Text.Json.Serialization.JsonPropertyName("workspaces_groups")] - public object? WorkspacesGroups { get; set; } + public global::System.Collections.Generic.IList>? WorkspacesGroups { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -126,12 +128,24 @@ public sealed partial class SamlSettings /// /// Initializes a new instance of the class. /// + /// + /// Included only in responses + /// /// /// Organization web domain or domains; use comma separated list with no spaces for multiple. Example:labelstud.io,humansignal.comIMPORTANT: DO NOT PUT COMMON DOMAINS LIKE GMAIL.COM, YAHOO.COM, ETC. IN THIS FIELD /// /// /// Identity Provider preset key (e.g. okta, azure, google, custom) /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// /// /// Mapping attributes: user email from SAML request /// @@ -150,27 +164,18 @@ public sealed partial class SamlSettings /// /// Metadata XML file /// + /// + /// Included only in responses + /// /// - /// Projects to groups mapping + /// Projects to Groups Mapping. List of objects with project_id, group, role. /// /// - /// Roles to groups mapping + /// Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. /// /// /// - /// Workspaces to groups mapping - /// - /// - /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Included only in responses - /// - /// - /// Included only in responses + /// Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. /// /// /// Included only in responses @@ -179,22 +184,23 @@ public sealed partial class SamlSettings [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SamlSettings( + string? acsUrl, string? domain, string? idpProvider, + string? loginUrl, + string? logoutUrl, + bool? manualRoleManagement, string? mappingEmail, string? mappingFirstName, string? mappingGroups, string? mappingLastName, string? metadataUrl, string? metadataXml, - object? projectsGroups, - object? rolesGroups, + string? metadataXmlUrl, + global::System.Collections.Generic.IList? projectsGroups, + global::System.Collections.Generic.IList>? rolesGroups, string? token, - object? workspacesGroups, - string acsUrl = default!, - string loginUrl = default!, - string logoutUrl = default!, - string metadataXmlUrl = default!, + global::System.Collections.Generic.IList>? workspacesGroups, string nameidFormat = default!) { this.AcsUrl = acsUrl; @@ -202,6 +208,7 @@ public SamlSettings( this.IdpProvider = idpProvider; this.LoginUrl = loginUrl; this.LogoutUrl = logoutUrl; + this.ManualRoleManagement = manualRoleManagement; this.MappingEmail = mappingEmail; this.MappingFirstName = mappingFirstName; this.MappingGroups = mappingGroups; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdate.g.cs index 3f42aa4..e6ead04 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdate.g.cs @@ -20,6 +20,12 @@ public sealed partial class SamlSettingsUpdate [global::System.Text.Json.Serialization.JsonPropertyName("idp_provider")] public string? IdpProvider { get; set; } + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("manual_role_management")] + public bool? ManualRoleManagement { get; set; } + /// /// Mapping attributes: user email from SAML request /// @@ -89,6 +95,9 @@ public sealed partial class SamlSettingsUpdate /// /// Identity Provider preset key (e.g. okta, azure, google, custom) /// + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// /// /// Mapping attributes: user email from SAML request /// @@ -122,6 +131,7 @@ public sealed partial class SamlSettingsUpdate public SamlSettingsUpdate( string? domain, string? idpProvider, + bool? manualRoleManagement, string? mappingEmail, string? mappingFirstName, string? mappingGroups, @@ -134,6 +144,7 @@ public SamlSettingsUpdate( { this.Domain = domain; this.IdpProvider = idpProvider; + this.ManualRoleManagement = manualRoleManagement; this.MappingEmail = mappingEmail; this.MappingFirstName = mappingFirstName; this.MappingGroups = mappingGroups; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdateRequest.g.cs index cc84a31..6117445 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.SamlSettingsUpdateRequest.g.cs @@ -20,6 +20,12 @@ public sealed partial class SamlSettingsUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("idp_provider")] public string? IdpProvider { get; set; } + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("manual_role_management")] + public bool? ManualRoleManagement { get; set; } + /// /// Mapping attributes: user email from SAML request /// @@ -89,6 +95,9 @@ public sealed partial class SamlSettingsUpdateRequest /// /// Identity Provider preset key (e.g. okta, azure, google, custom) /// + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// /// /// Mapping attributes: user email from SAML request /// @@ -122,6 +131,7 @@ public sealed partial class SamlSettingsUpdateRequest public SamlSettingsUpdateRequest( string? domain, string? idpProvider, + bool? manualRoleManagement, string? mappingEmail, string? mappingFirstName, string? mappingGroups, @@ -134,6 +144,7 @@ public SamlSettingsUpdateRequest( { this.Domain = domain; this.IdpProvider = idpProvider; + this.ManualRoleManagement = manualRoleManagement; this.MappingEmail = mappingEmail; this.MappingFirstName = mappingFirstName; this.MappingGroups = mappingGroups; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ScimSettings.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ScimSettings.g.cs index a466aee..8d9effb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ScimSettings.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ScimSettings.g.cs @@ -9,22 +9,22 @@ namespace LabelStudio public sealed partial class ScimSettings { /// - /// Projects to groups mapping + /// Projects to Groups Mapping. List of objects with project_id, group, role. /// [global::System.Text.Json.Serialization.JsonPropertyName("projects_groups")] - public object? ProjectsGroups { get; set; } + public global::System.Collections.Generic.IList? ProjectsGroups { get; set; } /// - /// Roles to groups mapping + /// Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. /// [global::System.Text.Json.Serialization.JsonPropertyName("roles_groups")] - public object? RolesGroups { get; set; } + public global::System.Collections.Generic.IList>? RolesGroups { get; set; } /// - /// Workspaces to groups mapping + /// Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. /// [global::System.Text.Json.Serialization.JsonPropertyName("workspaces_groups")] - public object? WorkspacesGroups { get; set; } + public global::System.Collections.Generic.IList>? WorkspacesGroups { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,21 +36,21 @@ public sealed partial class ScimSettings /// Initializes a new instance of the class. /// /// - /// Projects to groups mapping + /// Projects to Groups Mapping. List of objects with project_id, group, role. /// /// - /// Roles to groups mapping + /// Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. /// /// - /// Workspaces to groups mapping + /// Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ScimSettings( - object? projectsGroups, - object? rolesGroups, - object? workspacesGroups) + global::System.Collections.Generic.IList? projectsGroups, + global::System.Collections.Generic.IList>? rolesGroups, + global::System.Collections.Generic.IList>? workspacesGroups) { this.ProjectsGroups = projectsGroups; this.RolesGroups = rolesGroups; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs index d73e5be..a01f521 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Organizations2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs index d02b835..d239115 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Organizations2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -39,12 +58,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/organizations/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -54,7 +79,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs index dcf6f84..b757011 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.ResetToken.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Organizations2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ResetTokenSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ResetTokenSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ResetTokenSecurityRequirement0, + }; partial void PrepareResetTokenArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareResetTokenRequest( @@ -33,9 +52,15 @@ partial void ProcessResetTokenResponseContent( PrepareResetTokenArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ResetTokenSecurityRequirements, + operationName: "ResetTokenAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/invite/reset-token", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -45,7 +70,7 @@ partial void ProcessResetTokenResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs index d2cbf20..db0e626 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Organizations2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Organizations2Client : global::LabelStudio.IOrganiza /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs index c0aaf10..5797cc1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Assign.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AssignSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AssignSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AssignSecurityRequirement0, + }; partial void PrepareAssignArguments( global::System.Net.Http.HttpClient httpClient, ref double? excludeProjectId, @@ -87,6 +106,12 @@ partial void ProcessAssignResponseContent( userLastActivityLte: ref userLastActivityLte, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AssignSecurityRequirements, + operationName: "AssignAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/assignments", baseUri: HttpClient.BaseAddress); @@ -98,7 +123,7 @@ partial void ProcessAssignResponseContent( .AddOptionalParameter("tags", tags) .AddOptionalParameter("user__last_activity__gte", userLastActivityGte) .AddOptionalParameter("user__last_activity__lte", userLastActivityLte) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -108,7 +133,7 @@ partial void ProcessAssignResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs index 16f0d3d..b069757 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs index d67dd89..f7e3efa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs index 3cc8f46..b13d80f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete.g.cs @@ -5,13 +5,34 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref string? ids); partial void PrepareDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + string? ids); partial void ProcessDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -29,24 +50,36 @@ partial void ProcessDeleteResponseContent( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Delete multiple member tags from the organization in bulk. Allows the same request body as bulk create. + /// Delete multiple member tags from the organization in bulk. Pass tag IDs via the `ids` query parameter (comma-separated or repeated). For backward compatibility, a JSON body with `ids` is still accepted. ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DeleteAsync( int id, + string? ids = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareDeleteArguments( httpClient: HttpClient, - id: ref id); + id: ref id, + ids: ref ids); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/bulk", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ids", ids) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +89,7 @@ partial void ProcessDeleteResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -78,7 +111,8 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + ids: ids); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete2.g.cs index f98afef..5f76b02 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -44,9 +63,15 @@ partial void ProcessDelete2Response( id: ref id, tagPk: ref tagPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/{tagPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +81,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete3.g.cs index ca4bd06..c90bb99 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete3SecurityRequirement0, + }; partial void PrepareDelete3Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -38,9 +57,15 @@ partial void ProcessDelete3Response( id: ref id, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete3SecurityRequirements, + operationName: "Delete3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/memberships/{userPk}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -50,7 +75,7 @@ partial void ProcessDelete3Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete4.g.cs index 69bad66..76b9e0f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Delete4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete4SecurityRequirement0, + }; partial void PrepareDelete4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -44,9 +63,15 @@ partial void ProcessDelete4Response( id: ref id, permission: ref permission); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete4SecurityRequirements, + operationName: "Delete4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions/{permission}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +81,7 @@ partial void ProcessDelete4Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs index 39448be..b7c301e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessGet2ResponseContent( id: ref id, tagPk: ref tagPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/{tagPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs index 5a2c3c9..72c4b2b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get3SecurityRequirement0, + }; partial void PrepareGet3Arguments( global::System.Net.Http.HttpClient httpClient, ref bool? contributedToProjects, @@ -48,12 +67,18 @@ partial void ProcessGet3ResponseContent( id: ref id, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get3SecurityRequirements, + operationName: "Get3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/memberships/{userPk}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("contributed_to_projects", contributedToProjects?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -63,7 +88,7 @@ partial void ProcessGet3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs index 2c5015f..36934ec 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Get4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get4SecurityRequirement0, + }; partial void PrepareGet4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessGet4ResponseContent( id: ref id, permission: ref permission); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get4SecurityRequirements, + operationName: "Get4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions/{permission}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessGet4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs index 3762197..e0f0251 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetImport.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetImportSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetImportSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetImportSecurityRequirement0, + }; partial void PrepareGetImportArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -50,9 +69,15 @@ partial void ProcessGetImportResponseContent( id: ref id, importPk: ref importPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetImportSecurityRequirements, + operationName: "GetImportAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/imports/{importPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -62,7 +87,7 @@ partial void ProcessGetImportResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs index 8a35a4f..8c34b54 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetInviteLink.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetInviteLinkSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetInviteLinkSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetInviteLinkSecurityRequirement0, + }; partial void PrepareGetInviteLinkArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetInviteLinkRequest( @@ -33,9 +52,15 @@ partial void ProcessGetInviteLinkResponseContent( PrepareGetInviteLinkArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetInviteLinkSecurityRequirements, + operationName: "GetInviteLinkAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/invite", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessGetInviteLinkResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs index 7759ac4..cde211d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.GetOptions.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetOptionsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetOptionsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetOptionsSecurityRequirement0, + }; partial void PrepareGetOptionsArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,12 +68,18 @@ partial void ProcessGetOptionsResponseContent( id: ref id, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetOptionsSecurityRequirements, + operationName: "GetOptionsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions/options", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessGetOptionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs index 5721d5b..48ab75a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Import.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ImportSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ImportSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ImportSecurityRequirement0, + }; partial void PrepareImportArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -55,9 +74,15 @@ partial void ProcessImportResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ImportSecurityRequirements, + operationName: "ImportAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/imports", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessImportResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs index 8bc878f..4bcfb61 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -64,6 +83,12 @@ partial void ProcessList2ResponseContent( pageSize: ref pageSize, search: ref search); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags", baseUri: HttpClient.BaseAddress); @@ -72,7 +97,7 @@ partial void ProcessList2ResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("search", search) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -82,7 +107,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs index 02199e3..3dbacba 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List3SecurityRequirement0, + }; partial void PrepareList3Arguments( global::System.Net.Http.HttpClient httpClient, ref bool? contributedToProjects, @@ -15,6 +34,7 @@ partial void PrepareList3Arguments( ref int? page, ref int? pageSize, ref string? role, + ref global::LabelStudio.ApiOrganizationsMembershipsListScope? scope, ref string? search, ref string? tags); partial void PrepareList3Request( @@ -28,6 +48,7 @@ partial void PrepareList3Request( int? page, int? pageSize, string? role, + global::LabelStudio.ApiOrganizationsMembershipsListScope? scope, string? search, string? tags); partial void ProcessList3Response( @@ -57,6 +78,7 @@ partial void ProcessList3ResponseContent( /// /// /// + /// /// /// /// The token to cancel the operation with @@ -70,6 +92,7 @@ partial void ProcessList3ResponseContent( int? page = default, int? pageSize = default, string? role = default, + global::LabelStudio.ApiOrganizationsMembershipsListScope? scope = default, string? search = default, string? tags = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -86,9 +109,16 @@ partial void ProcessList3ResponseContent( page: ref page, pageSize: ref pageSize, role: ref role, + scope: ref scope, search: ref search, tags: ref tags); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List3SecurityRequirements, + operationName: "List3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/memberships", baseUri: HttpClient.BaseAddress); @@ -100,9 +130,10 @@ partial void ProcessList3ResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("role", role) + .AddOptionalParameter("scope", scope?.ToValueString()) .AddOptionalParameter("search", search) .AddOptionalParameter("tags", tags) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -112,7 +143,7 @@ partial void ProcessList3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -142,6 +173,7 @@ partial void ProcessList3ResponseContent( page: page, pageSize: pageSize, role: role, + scope: scope, search: search, tags: tags); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs index 9fc6289..dc95ccf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.List4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List4SecurityRequirement0, + }; partial void PrepareList4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,12 +68,18 @@ partial void ProcessList4ResponseContent( id: ref id, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List4SecurityRequirements, + operationName: "List4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessList4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs index ee1252d..3cd5855 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Post.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_PostSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_PostSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_PostSecurityRequirement0, + }; partial void PreparePostArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessPostResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PostSecurityRequirements, + operationName: "PostAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/bulk", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessPostResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs index ad7ee2f..7812c35 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Replace.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ReplaceSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ReplaceSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ReplaceSecurityRequirement0, + }; partial void PrepareReplaceArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessReplaceResponseContent( permission: ref permission, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ReplaceSecurityRequirements, + operationName: "ReplaceAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions/{permission}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -69,7 +94,7 @@ partial void ProcessReplaceResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs index 664cc5d..48706db 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.RevokeInvite.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RevokeInviteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RevokeInviteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RevokeInviteSecurityRequirement0, + }; partial void PrepareRevokeInviteArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.RevokeInviteRequest request); @@ -42,9 +61,15 @@ partial void ProcessRevokeInviteResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RevokeInviteSecurityRequirements, + operationName: "RevokeInviteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/invite/revoke", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessRevokeInviteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs index d35d3e9..f08d375 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.SendEmail.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SendEmailSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SendEmailSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SendEmailSecurityRequirement0, + }; partial void PrepareSendEmailArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.SendInviteRequest request); @@ -42,9 +61,15 @@ partial void ProcessSendEmailResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SendEmailSecurityRequirements, + operationName: "SendEmailAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/invite/send-email", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessSendEmailResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs index 25e6e10..8c55941 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -319,6 +344,10 @@ partial void ProcessUpdateResponseContent( /// Public Verification Key and Public Verification Algorithms configuration
/// Included only in requests /// + /// + /// ReactCode settings
+ /// Included only in requests + /// /// /// Organization name
/// Included only in requests @@ -332,6 +361,7 @@ partial void ProcessUpdateResponseContent( object? emailNotificationSettings, global::System.Collections.Generic.IList>? embedDomains, object? embedSettings, + object? reactCodeSettings, string? title, string? contactInfo = default, int? createdBy = default, @@ -346,6 +376,7 @@ partial void ProcessUpdateResponseContent( EmailNotificationSettings = emailNotificationSettings, EmbedDomains = embedDomains, EmbedSettings = embedSettings, + ReactCodeSettings = reactCodeSettings, Title = title, Token = token, }; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs index 62b33c8..66ccf45 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessUpdate2ResponseContent( tagPk: ref tagPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/member-tags/{tagPk}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -69,7 +94,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs index fc43897..3c57158 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update3SecurityRequirement0, + }; partial void PrepareUpdate3Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -58,9 +77,15 @@ partial void ProcessUpdate3ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update3SecurityRequirements, + operationName: "Update3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/memberships", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -70,7 +95,7 @@ partial void ProcessUpdate3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs index 88933dd..2b68484 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.Update4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update4SecurityRequirement0, + }; partial void PrepareUpdate4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessUpdate4ResponseContent( permission: ref permission, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update4SecurityRequirements, + operationName: "Update4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/permissions/{permission}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -69,7 +94,7 @@ partial void ProcessUpdate4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs index 54d484d..90143b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.UpdateDefaultRole.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class OrganizationsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateDefaultRoleSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateDefaultRoleSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateDefaultRoleSecurityRequirement0, + }; partial void PrepareUpdateDefaultRoleArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateDefaultRoleResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateDefaultRoleSecurityRequirements, + operationName: "UpdateDefaultRoleAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/organizations/{id}/set-default-role", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -237,6 +262,9 @@ partial void ProcessUpdateDefaultRoleResponseContent( /// /// A unique integer value identifying this organization. /// + /// + /// ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]} + /// /// /// Set to current time to prevent creating or editing annotations in quick view. /// @@ -254,6 +282,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( bool? extraDataOnActivityLogs = default, global::System.DateTime? labelStreamNavigationDisabledAt = default, int? organization = default, + object? reactCodeSettings = default, global::System.DateTime? readOnlyQuickViewEnabledAt = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -269,6 +298,7 @@ partial void ProcessUpdateDefaultRoleResponseContent( ExtraDataOnActivityLogs = extraDataOnActivityLogs, LabelStreamNavigationDisabledAt = labelStreamNavigationDisabledAt, Organization = organization, + ReactCodeSettings = reactCodeSettings, ReadOnlyQuickViewEnabledAt = readOnlyQuickViewEnabledAt, }; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs index 1aaf428..12c50b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.OrganizationsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class OrganizationsClient : global::LabelStudio.IOrganizat /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PathBuilder.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PathBuilder.g.cs index 46b18cd..28f8d79 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PathBuilder.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PathBuilder.g.cs @@ -224,6 +224,40 @@ public PathBuilder AddOptionalParameter( return this; } + /// + /// Adds a pre-serialized query string fragment to the URL. + /// + /// The serialized query string value. + /// The current instance. + public PathBuilder AddRawQueryString( + string value) + { + if (string.IsNullOrWhiteSpace(value)) + { + return this; + } + + value = value.TrimStart('?', '&'); + if (value.Length == 0) + { + return this; + } + + if (_firstParameter) + { + _stringBuilder.Append('?'); + _firstParameter = false; + } + else + { + _stringBuilder.Append('&'); + } + + _stringBuilder.Append(value); + + return this; + } + /// /// Returns the constructed URL as a string. /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs index 18dbf46..414ff0f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.ApiProjectsMembersPausesUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsMembersPausesUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectsMembersPausesUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsMembersPausesUpdateSecurityRequirement0, + }; partial void PrepareApiProjectsMembersPausesUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -62,9 +81,15 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( userPk: ref userPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsMembersPausesUpdateSecurityRequirements, + operationName: "ApiProjectsMembersPausesUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -74,7 +99,7 @@ partial void ProcessApiProjectsMembersPausesUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs index c44159f..3ed73c4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int projectPk, @@ -57,9 +76,15 @@ partial void ProcessCreateResponseContent( userPk: ref userPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -69,7 +94,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Delete.g.cs index f696cbd..e387027 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -49,9 +68,15 @@ partial void ProcessDeleteResponse( projectPk: ref projectPk, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -61,7 +86,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs index 8a1f14a..0eedbf8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -54,9 +73,15 @@ partial void ProcessGetResponseContent( projectPk: ref projectPk, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -66,7 +91,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs index 204dbd2..a5d9c4b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref bool? includeDeleted, @@ -59,13 +78,19 @@ partial void ProcessListResponseContent( projectPk: ref projectPk, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("include_deleted", includeDeleted?.ToString().ToLowerInvariant()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -75,7 +100,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs index 7e51787..0a24e1e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PausesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -62,9 +81,15 @@ partial void ProcessUpdateResponseContent( userPk: ref userPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/members/{userPk}/pauses/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -74,7 +99,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs index 5c1ba5e..5ad522f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PausesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class PausesClient : global::LabelStudio.IPausesClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs index e25059d..379f3d0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Predictions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiPredictionsCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/predictions/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Delete.g.cs index 24070d1..6fea61a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Predictions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/predictions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs index aabbd46..ac322f9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Predictions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/predictions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs index c915aa4..94d9a7a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Predictions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? project, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( project: ref project, task: ref task); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/predictions/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project?.ToString()) .AddOptionalParameter("task", task?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs index bcaa3b4..482d33d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Predictions2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/predictions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs index db1f884..0288663 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Predictions2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Predictions2Client : global::LabelStudio.IPrediction /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs index c14ea07..372af27 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.ApiPredictionsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PredictionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPredictionsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiPredictionsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPredictionsUpdateSecurityRequirement0, + }; partial void PrepareApiPredictionsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessApiPredictionsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPredictionsUpdateSecurityRequirements, + operationName: "ApiPredictionsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/predictions/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -58,7 +83,7 @@ partial void ProcessApiPredictionsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs index f3847e7..c972ce4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PredictionsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class PredictionsClient : global::LabelStudio.IPredictions /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs index ce17e0c..1edf57b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Add.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectRolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AddSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AddSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AddSecurityRequirement0, + }; partial void PrepareAddArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ProjectRoleRequest request); @@ -48,9 +67,15 @@ partial void ProcessAddResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AddSecurityRequirements, + operationName: "AddAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/roles/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -60,7 +85,7 @@ partial void ProcessAddResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs index b1cef64..b0ed999 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectRolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -46,9 +65,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/roles", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -58,7 +83,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs index 51dbb82..61da36f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectRolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int? ids, @@ -50,13 +69,19 @@ partial void ProcessListResponseContent( ids: ref ids, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/roles/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ids", ids?.ToString()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -66,7 +91,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Remove.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Remove.g.cs index 3bd9ad0..4965f57 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Remove.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.Remove.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectRolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RemoveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RemoveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RemoveSecurityRequirement0, + }; partial void PrepareRemoveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -40,9 +59,15 @@ partial void ProcessRemoveResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveSecurityRequirements, + operationName: "RemoveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/roles/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -52,7 +77,7 @@ partial void ProcessRemoveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs index 1974cd9..b918e18 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectRolesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ProjectRolesClient : global::LabelStudio.IProjectRol /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs index 80b21e9..a22b528 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.ApiProjectTemplatesUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectTemplatesUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectTemplatesUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectTemplatesUpdateSecurityRequirement0, + }; partial void PrepareApiProjectTemplatesUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectTemplatesUpdateSecurityRequirements, + operationName: "ApiProjectTemplatesUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/project-templates/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -64,7 +89,7 @@ partial void ProcessApiProjectTemplatesUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs index f7ae6c1..b0a974f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ProjectTemplateRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/project-templates/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs index 49197bf..854bf77 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.CreateProjectFromTemplate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateProjectFromTemplateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateProjectFromTemplateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateProjectFromTemplateSecurityRequirement0, + }; partial void PrepareCreateProjectFromTemplateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreateProjectFromTemplateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateProjectFromTemplateSecurityRequirements, + operationName: "CreateProjectFromTemplateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/project-templates/{id}/create-project", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreateProjectFromTemplateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Delete.g.cs index 9de5fa6..13dc446 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/project-templates/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs index c7fc241..ac7e7d0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/project-templates/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs index bb1c61c..6e142d1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -44,12 +63,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/project-templates/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs index 33580fd..cb28192 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectTemplatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/project-templates/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs index 5656aeb..febf083 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectTemplatesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ProjectTemplatesClient : global::LabelStudio.IProjec /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs index a8b73cb..ce285b8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs @@ -7,6 +7,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseProjectCreateRequest request); @@ -43,9 +62,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -55,7 +80,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Delete.g.cs index 176259f..f7705fe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs index a9b6c92..45b502f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DuplicateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DuplicateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DuplicateSecurityRequirement0, + }; partial void PrepareDuplicateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessDuplicateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DuplicateSecurityRequirements, + operationName: "DuplicateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/duplicate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessDuplicateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs index 6025a9a..01a72da 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -45,12 +64,18 @@ partial void ProcessGetResponseContent( id: ref id, membersLimit: ref membersLimit); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("members_limit", membersLimit?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -60,7 +85,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs index e4720fb..38344a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportPredictions.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ImportPredictionsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ImportPredictionsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ImportPredictionsSecurityRequirement0, + }; partial void PrepareImportPredictionsArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessImportPredictionsResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ImportPredictionsSecurityRequirements, + operationName: "ImportPredictionsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/import/predictions", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessImportPredictionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs index a79e8d2..66b607c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ImportTasks.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ImportTasksSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ImportTasksSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ImportTasksSecurityRequirement0, + }; partial void PrepareImportTasksArguments( global::System.Net.Http.HttpClient httpClient, ref bool? commitToProject, @@ -114,6 +133,12 @@ partial void ProcessImportTasksResponseContent( returnTaskIds: ref returnTaskIds, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ImportTasksSecurityRequirements, + operationName: "ImportTasksAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/import", baseUri: HttpClient.BaseAddress); @@ -121,7 +146,7 @@ partial void ProcessImportTasksResponseContent( .AddOptionalParameter("commit_to_project", commitToProject?.ToString().ToLowerInvariant()) .AddOptionalParameter("preannotated_from_fields", preannotatedFromFields, delimiter: ",", explode: true) .AddOptionalParameter("return_task_ids", returnTaskIds?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -131,7 +156,7 @@ partial void ProcessImportTasksResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs index ca2a036..f41d7d5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref bool? archived, @@ -97,6 +116,12 @@ partial void ProcessListResponseContent( title: ref title, workspaces: ref workspaces); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/", baseUri: HttpClient.BaseAddress); @@ -113,7 +138,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("state", state) .AddOptionalParameter("title", title) .AddOptionalParameter("workspaces", workspaces?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -123,7 +148,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs index d954513..6c13b91 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListCounts.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListCountsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListCountsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListCountsSecurityRequirement0, + }; partial void PrepareListCountsArguments( global::System.Net.Http.HttpClient httpClient, ref bool? archived, @@ -90,6 +109,12 @@ partial void ProcessListCountsResponseContent( title: ref title, workspaces: ref workspaces); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListCountsSecurityRequirements, + operationName: "ListCountsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/counts/", baseUri: HttpClient.BaseAddress); @@ -105,7 +130,7 @@ partial void ProcessListCountsResponseContent( .AddOptionalParameter("state", state) .AddOptionalParameter("title", title) .AddOptionalParameter("workspaces", workspaces?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -115,7 +140,7 @@ partial void ProcessListCountsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs index 2870c9b..880868f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ListUniqueAnnotators.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListUniqueAnnotatorsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListUniqueAnnotatorsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListUniqueAnnotatorsSecurityRequirement0, + }; partial void PrepareListUniqueAnnotatorsArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessListUniqueAnnotatorsResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListUniqueAnnotatorsSecurityRequirements, + operationName: "ListUniqueAnnotatorsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/annotators/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessListUniqueAnnotatorsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs index 91a2897..6d6ae56 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs @@ -7,6 +7,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -55,12 +74,18 @@ partial void ProcessUpdateResponseContent( membersLimit: ref membersLimit, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("members_limit", membersLimit?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -70,7 +95,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs index 888d0cc..ab569b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.ValidateLabelConfig.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Projects2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateLabelConfigSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateLabelConfigSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateLabelConfigSecurityRequirement0, + }; partial void PrepareValidateLabelConfigArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessValidateLabelConfigResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateLabelConfigSecurityRequirements, + operationName: "ValidateLabelConfigAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/validate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -58,7 +83,7 @@ partial void ProcessValidateLabelConfigResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs index b5ecc27..1c1ed49 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Projects2Client : global::LabelStudio.IProjects2Clie /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs index 33ed7f5..cd88f80 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Add.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AddSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AddSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AddSecurityRequirement0, + }; partial void PrepareAddArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessAddResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AddSecurityRequirements, + operationName: "AddAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/members/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessAddResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs index 14e77c2..4dc0f58 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsReimportsRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsReimportsRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectsReimportsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsReimportsRetrieveSecurityRequirement0, + }; partial void PrepareApiProjectsReimportsRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessApiProjectsReimportsRetrieveResponseContent( id: ref id, reimportPk: ref reimportPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsReimportsRetrieveSecurityRequirements, + operationName: "ApiProjectsReimportsRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/reimports/{reimportPk}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessApiProjectsReimportsRetrieveResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs index 2aa16e6..75a1252 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsTasksList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsTasksListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectsTasksListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsTasksListSecurityRequirement0, + }; partial void PrepareApiProjectsTasksListArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,6 +76,12 @@ partial void ProcessApiProjectsTasksListResponseContent( page: ref page, pageSize: ref pageSize); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsTasksListSecurityRequirements, + operationName: "ApiProjectsTasksListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/", baseUri: HttpClient.BaseAddress); @@ -64,7 +89,7 @@ partial void ProcessApiProjectsTasksListResponseContent( .AddOptionalParameter("ordering", ordering) .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -74,7 +99,7 @@ partial void ProcessApiProjectsTasksListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs index 621312b..0a9d887 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.ApiProjectsValidateCreate.g.cs @@ -5,6 +5,34 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsValidateCreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsValidateCreateSecurityRequirement1 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiProjectsValidateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsValidateCreateSecurityRequirement0, + s_ApiProjectsValidateCreateSecurityRequirement1, + }; partial void PrepareApiProjectsValidateCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ProjectLabelConfigRequest request); @@ -36,9 +64,15 @@ partial void ProcessApiProjectsValidateCreateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsValidateCreateSecurityRequirements, + operationName: "ApiProjectsValidateCreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/projects/validate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +82,7 @@ partial void ProcessApiProjectsValidateCreateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs index 2ccf0c6..d067b0c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.CheckFunction.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CheckFunctionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CheckFunctionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CheckFunctionSecurityRequirement0, + }; partial void PrepareCheckFunctionArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -47,9 +66,15 @@ partial void ProcessCheckFunctionResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CheckFunctionSecurityRequirements, + operationName: "CheckFunctionAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/check-function", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCheckFunctionResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs index 1737e24..f3c0f96 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/project-extra-params/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -203,7 +228,7 @@ partial void ProcessCreate2ResponseContent( ///
/// /// - /// user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]} + /// User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1]. /// /// /// If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement @@ -212,7 +237,7 @@ partial void ProcessCreate2ResponseContent( /// public async global::System.Threading.Tasks.Task Create2Async( int id, - object? annotatorParams = default, + global::System.Collections.Generic.Dictionary? annotatorParams = default, bool? useKappa = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs index 2c4d75f..b884902 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Delete2.g.cs @@ -5,9 +5,31 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, + ref bool? all, + ref string? excluded, ref int id, + ref string? included, ref string? lastActivityGte, ref string? lastActivityLte, ref string? role, @@ -16,7 +38,10 @@ partial void PrepareDelete2Arguments( partial void PrepareDelete2Request( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + bool? all, + string? excluded, int id, + string? included, string? lastActivityGte, string? lastActivityLte, string? role, @@ -39,9 +64,12 @@ partial void ProcessDelete2ResponseContent( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Unassign project members in bulk. Allows the same request body as bulk assign. + /// Unassign project members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional member filters (`search`, `role`, `tags`, `last_activity__gte`, `last_activity__lte`). For backward compatibility, a JSON body with bulk fields is still accepted. ///
+ /// + /// /// + /// /// /// /// @@ -51,6 +79,9 @@ partial void ProcessDelete2ResponseContent( /// public async global::System.Threading.Tasks.Task Delete2Async( int id, + bool? all = default, + string? excluded = default, + string? included = default, string? lastActivityGte = default, string? lastActivityLte = default, string? role = default, @@ -62,23 +93,35 @@ partial void ProcessDelete2ResponseContent( client: HttpClient); PrepareDelete2Arguments( httpClient: HttpClient, + all: ref all, + excluded: ref excluded, id: ref id, + included: ref included, lastActivityGte: ref lastActivityGte, lastActivityLte: ref lastActivityLte, role: ref role, search: ref search, tags: ref tags); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/members/bulk/", baseUri: HttpClient.BaseAddress); __pathBuilder + .AddOptionalParameter("all", all?.ToString().ToLowerInvariant()) + .AddOptionalParameter("excluded", excluded) + .AddOptionalParameter("included", included) .AddOptionalParameter("last_activity__gte", lastActivityGte) .AddOptionalParameter("last_activity__lte", lastActivityLte) .AddOptionalParameter("role", role) .AddOptionalParameter("search", search) .AddOptionalParameter("tags", tags) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -88,7 +131,7 @@ partial void ProcessDelete2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -110,7 +153,10 @@ partial void ProcessDelete2ResponseContent( PrepareDelete2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, + all: all, + excluded: excluded, id: id, + included: included, lastActivityGte: lastActivityGte, lastActivityLte: lastActivityLte, role: role, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.DeployFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.DeployFunction.g.cs new file mode 100644 index 0000000..8dbb78e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.DeployFunction.g.cs @@ -0,0 +1,261 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class ProjectsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeployFunctionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeployFunctionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeployFunctionSecurityRequirement0, + }; + partial void PrepareDeployFunctionArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + global::LabelStudio.CustomFunctionCodeRequestRequest request); + partial void PrepareDeployFunctionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + global::LabelStudio.CustomFunctionCodeRequestRequest request); + partial void ProcessDeployFunctionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Deploy custom metric function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the custom metric function for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeployFunctionAsync( + int id, + + global::LabelStudio.CustomFunctionCodeRequestRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareDeployFunctionArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeployFunctionSecurityRequirements, + operationName: "DeployFunctionAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/projects/{id}/custom-function", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeployFunctionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeployFunctionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (ReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::LabelStudio.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Deploy custom metric function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the custom metric function for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeployFunctionAsync( + int id, + string code, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.CustomFunctionCodeRequestRequest + { + Code = code, + }; + + await DeployFunctionAsync( + id: id, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs index 5d4bf4c..266b4c7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get3SecurityRequirement0, + }; partial void PrepareGet3Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet3ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get3SecurityRequirements, + operationName: "Get3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/metricparam/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs index c78af0d..ff13100 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Get4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get4SecurityRequirement0, + }; partial void PrepareGet4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet4ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get4SecurityRequirements, + operationName: "Get4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/project-extra-params/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunction.g.cs new file mode 100644 index 0000000..5bab957 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunction.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class ProjectsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetFunctionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetFunctionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetFunctionSecurityRequirement0, + }; + partial void PrepareGetFunctionArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareGetFunctionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessGetFunctionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetFunctionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get custom metric code
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get the custom metric function code for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetFunctionAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetFunctionArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetFunctionSecurityRequirements, + operationName: "GetFunctionAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/projects/{id}/custom-function", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetFunctionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetFunctionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetFunctionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunctionLogs.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunctionLogs.g.cs new file mode 100644 index 0000000..a53a137 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetFunctionLogs.g.cs @@ -0,0 +1,226 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class ProjectsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetFunctionLogsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetFunctionLogsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetFunctionLogsSecurityRequirement0, + }; + partial void PrepareGetFunctionLogsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? endDate, + ref int id, + ref int? limit, + ref string? startDate); + partial void PrepareGetFunctionLogsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? endDate, + int id, + int? limit, + string? startDate); + partial void ProcessGetFunctionLogsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetFunctionLogsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get custom metric function logs
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get execution logs for the custom metric function. The server routes to the active cloud provider based on the CUSTOM_METRIC_PROVIDER setting. + ///
+ /// + /// + /// + /// Default Value: 100 + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetFunctionLogsAsync( + int id, + string? endDate = default, + int? limit = default, + string? startDate = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetFunctionLogsArguments( + httpClient: HttpClient, + endDate: ref endDate, + id: ref id, + limit: ref limit, + startDate: ref startDate); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetFunctionLogsSecurityRequirements, + operationName: "GetFunctionLogsAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/projects/{id}/custom-function-logs", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("end_date", endDate) + .AddOptionalParameter("limit", limit?.ToString()) + .AddOptionalParameter("start_date", startDate) + ; + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetFunctionLogsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + endDate: endDate, + id: id, + limit: limit, + startDate: startDate); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetFunctionLogsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetFunctionLogsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return __content; + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return __content; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetGcpFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetGcpFunction.g.cs new file mode 100644 index 0000000..045dca3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetGcpFunction.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class ProjectsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetGcpFunctionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetGcpFunctionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetGcpFunctionSecurityRequirement0, + }; + partial void PrepareGetGcpFunctionArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareGetGcpFunctionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessGetGcpFunctionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetGcpFunctionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get GCP custom metric code
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get the GCP Cloud Function code for the custom metric configured for this project. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetGcpFunctionAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetGcpFunctionArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetGcpFunctionSecurityRequirements, + operationName: "GetGcpFunctionAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/projects/{id}/gcp-custom-function", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetGcpFunctionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetGcpFunctionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetGcpFunctionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs index fd026fe..0adcdd6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.GetLambda.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetLambdaSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetLambdaSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetLambdaSecurityRequirement0, + }; partial void PrepareGetLambdaArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetLambdaResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetLambdaSecurityRequirements, + operationName: "GetLambdaAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/aws-custom-function", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetLambdaResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs index 318eea4..7163e72 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -110,6 +129,12 @@ partial void ProcessList2ResponseContent( tags: ref tags, withDeleted: ref withDeleted); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/members/paginated/", baseUri: HttpClient.BaseAddress); @@ -126,7 +151,7 @@ partial void ProcessList2ResponseContent( .AddOptionalParameter("search", search) .AddOptionalParameter("tags", tags) .AddOptionalParameter("with_deleted", withDeleted?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -136,7 +161,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs index 3caf277..1723c35 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Post.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_PostSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_PostSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_PostSecurityRequirement0, + }; partial void PreparePostArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -77,6 +96,12 @@ partial void ProcessPostResponseContent( tags: ref tags, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PostSecurityRequirements, + operationName: "PostAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/members/bulk/", baseUri: HttpClient.BaseAddress); @@ -86,7 +111,7 @@ partial void ProcessPostResponseContent( .AddOptionalParameter("role", role) .AddOptionalParameter("search", search) .AddOptionalParameter("tags", tags) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -96,7 +121,7 @@ partial void ProcessPostResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Remove.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Remove.g.cs index 2babade..4895929 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Remove.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Remove.g.cs @@ -5,13 +5,34 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RemoveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RemoveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RemoveSecurityRequirement0, + }; partial void PrepareRemoveArguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref int? user); partial void PrepareRemoveRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + int? user); partial void ProcessRemoveResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -24,24 +45,36 @@ partial void ProcessRemoveResponse( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a member from a specific project. + /// Remove a member from a specific project. Pass the member ID via the `user` query parameter. For backward compatibility, a JSON body with `user` is still accepted. ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task RemoveAsync( int id, + int? user = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareRemoveArguments( httpClient: HttpClient, - id: ref id); + id: ref id, + user: ref user); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveSecurityRequirements, + operationName: "RemoveAsync"); var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/members/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("user", user?.ToString()) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +84,7 @@ partial void ProcessRemoveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -73,7 +106,8 @@ partial void ProcessRemoveResponse( PrepareRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + user: user); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs index cffcc38..5096523 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.Update2.g.cs @@ -7,6 +7,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,9 +73,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/metricparam/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -66,7 +91,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateGcpFunction.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateGcpFunction.g.cs new file mode 100644 index 0000000..882137d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateGcpFunction.g.cs @@ -0,0 +1,273 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class ProjectsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateGcpFunctionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateGcpFunctionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateGcpFunctionSecurityRequirement0, + }; + partial void PrepareUpdateGcpFunctionArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + global::LabelStudio.GCPCustomFunctionUpdateRequest request); + partial void PrepareUpdateGcpFunctionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + global::LabelStudio.GCPCustomFunctionUpdateRequest request); + partial void ProcessUpdateGcpFunctionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Update GCP custom metric Cloud Function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the GCP Cloud Function used for custom metrics in this project. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGcpFunctionAsync( + int id, + + global::LabelStudio.GCPCustomFunctionUpdateRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateGcpFunctionArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateGcpFunctionSecurityRequirements, + operationName: "UpdateGcpFunctionAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/projects/{id}/gcp-custom-function", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateGcpFunctionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateGcpFunctionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + try + { + if (ReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::LabelStudio.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Update GCP custom metric Cloud Function
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create or update the GCP Cloud Function used for custom metrics in this project. + ///
+ /// + /// + /// The Python code for the custom metric function. + /// + /// + /// The GCP project ID. Uses default if not provided. + /// + /// + /// The GCP region for the Cloud Function. Uses default if not provided. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateGcpFunctionAsync( + int id, + string code, + string? project = default, + string? region = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.GCPCustomFunctionUpdateRequest + { + Code = code, + Project = project, + Region = region, + }; + + await UpdateGcpFunctionAsync( + id: id, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs index 978299a..48b147f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.UpdateLambda.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ProjectsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateLambdaSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateLambdaSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateLambdaSecurityRequirement0, + }; partial void PrepareUpdateLambdaArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -47,9 +66,15 @@ partial void ProcessUpdateLambdaResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateLambdaSecurityRequirements, + operationName: "UpdateLambdaAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/aws-custom-function", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessUpdateLambdaResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs index 022a639..4e9c0af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ProjectsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ProjectsClient : global::LabelStudio.IProjectsClient /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs index cdc8b69..99cd445 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchFailedPredictions.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_BatchFailedPredictionsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_BatchFailedPredictionsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_BatchFailedPredictionsSecurityRequirement0, + }; partial void PrepareBatchFailedPredictionsArguments( global::System.Net.Http.HttpClient httpClient, ref int? numFailedPredictions, @@ -52,12 +71,18 @@ partial void ProcessBatchFailedPredictionsResponseContent( numFailedPredictions: ref numFailedPredictions, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_BatchFailedPredictionsSecurityRequirements, + operationName: "BatchFailedPredictionsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/model-run/batch-failed-predictions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("num_failed_predictions", numFailedPredictions?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessBatchFailedPredictionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs index d5968ff..83a6745 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.BatchPredictions.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_BatchPredictionsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_BatchPredictionsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_BatchPredictionsSecurityRequirement0, + }; partial void PrepareBatchPredictionsArguments( global::System.Net.Http.HttpClient httpClient, ref int? numPredictions, @@ -52,12 +71,18 @@ partial void ProcessBatchPredictionsResponseContent( numPredictions: ref numPredictions, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_BatchPredictionsSecurityRequirements, + operationName: "BatchPredictionsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/model-run/batch-predictions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("num_predictions", numPredictions?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -67,7 +92,7 @@ partial void ProcessBatchPredictionsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs index 1dd4db1..91a3b9f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.CompatibleProjects.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CompatibleProjectsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CompatibleProjectsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CompatibleProjectsSecurityRequirement0, + }; partial void PrepareCompatibleProjectsArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -55,6 +74,12 @@ partial void ProcessCompatibleProjectsResponseContent( pageSize: ref pageSize, projectType: ref projectType); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CompatibleProjectsSecurityRequirements, + operationName: "CompatibleProjectsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/prompts/compatible-projects", baseUri: HttpClient.BaseAddress); @@ -63,7 +88,7 @@ partial void ProcessCompatibleProjectsResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("project_type", projectType?.ToValueString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -73,7 +98,7 @@ partial void ProcessCompatibleProjectsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs index 3642c6e..24d66a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ModelInterfaceRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/prompts/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Delete.g.cs index 65c2e28..5f3423b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs index 73ce2be..72fffb8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -44,9 +63,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs index 29de06a..373ec0c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessList2ResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/prompts/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs index e323346..079cb84 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.SubsetTasks.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SubsetTasksSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SubsetTasksSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SubsetTasksSecurityRequirement0, + }; partial void PrepareSubsetTasksArguments( global::System.Net.Http.HttpClient httpClient, ref bool? includeTotal, @@ -80,6 +99,12 @@ partial void ProcessSubsetTasksResponseContent( projectPk: ref projectPk, projectSubset: ref projectSubset); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SubsetTasksSecurityRequirements, + operationName: "SubsetTasksAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/subset-tasks", baseUri: HttpClient.BaseAddress); @@ -91,7 +116,7 @@ partial void ProcessSubsetTasksResponseContent( .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("parent_model", parentModel?.ToString()) .AddOptionalParameter("project_subset", projectSubset) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -101,7 +126,7 @@ partial void ProcessSubsetTasksResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs index fb780a1..0ab6cde 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Subsets.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SubsetsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SubsetsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SubsetsSecurityRequirement0, + }; partial void PrepareSubsetsArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -50,12 +69,18 @@ partial void ProcessSubsetsResponseContent( ordering: ref ordering, projectPk: ref projectPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SubsetsSecurityRequirements, + operationName: "SubsetsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{projectPk}/subsets", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessSubsetsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs index 26613fb..88b0aae 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Prompts2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs index e9fdffe..c69073a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Prompts2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Prompts2Client : global::LabelStudio.IPrompts2Client /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs index 33fbffd..140dd59 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiPromptsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsUpdateSecurityRequirement0, + }; partial void PrepareApiPromptsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -52,9 +71,15 @@ partial void ProcessApiPromptsUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsUpdateSecurityRequirements, + operationName: "ApiPromptsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -64,7 +89,7 @@ partial void ProcessApiPromptsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs index b8af778..f5c54c9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiPromptsVersionsUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsUpdateSecurityRequirement0, + }; partial void PrepareApiPromptsVersionsUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -57,9 +76,15 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( versionId: ref versionId, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsUpdateSecurityRequirements, + operationName: "ApiPromptsVersionsUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -69,7 +94,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs index 4e3ffab..ac35829 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Cancel.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CancelSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CancelSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CancelSecurityRequirement0, + }; partial void PrepareCancelArguments( global::System.Net.Http.HttpClient httpClient, ref int inferenceRunId, @@ -54,9 +73,15 @@ partial void ProcessCancelResponseContent( promptId: ref promptId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelSecurityRequirements, + operationName: "CancelAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/inference-runs/{inferenceRunId}/cancel", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -66,7 +91,7 @@ partial void ProcessCancelResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs index e37ee62..dcad202 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.CostEstimate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CostEstimateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CostEstimateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CostEstimateSecurityRequirement0, + }; partial void PrepareCostEstimateArguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -49,9 +68,15 @@ partial void ProcessCostEstimateResponseContent( promptId: ref promptId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CostEstimateSecurityRequirements, + operationName: "CostEstimateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/cost-estimate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessCostEstimateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs index 3594ad3..395616b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -52,9 +71,15 @@ partial void ProcessCreate2ResponseContent( promptId: ref promptId, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs index 3b916b0..b2fa665 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create3SecurityRequirement0, + }; partial void PrepareCreate3Arguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -57,9 +76,15 @@ partial void ProcessCreate3ResponseContent( versionId: ref versionId, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create3SecurityRequirements, + operationName: "Create3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/inference-runs", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -69,7 +94,7 @@ partial void ProcessCreate3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Delete2.g.cs index 7b5365c..beec867 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -44,9 +63,15 @@ partial void ProcessDelete2Response( promptId: ref promptId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +81,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs index 63532b0..5f3b09e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessGetResponseContent( id: ref id, indicatorKey: ref indicatorKey); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/inference-runs/{id}/indicators/{indicatorKey}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs index c79fae4..5d29843 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Get3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get3SecurityRequirement0, + }; partial void PrepareGet3Arguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -49,9 +68,15 @@ partial void ProcessGet3ResponseContent( promptId: ref promptId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get3SecurityRequirements, + operationName: "Get3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessGet3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetDefaultVersionName.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetDefaultVersionName.g.cs index e1523b7..b58f1ee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetDefaultVersionName.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetDefaultVersionName.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetDefaultVersionNameSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetDefaultVersionNameSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetDefaultVersionNameSecurityRequirement0, + }; partial void PrepareGetDefaultVersionNameArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessGetDefaultVersionNameResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetDefaultVersionNameSecurityRequirements, + operationName: "GetDefaultVersionNameAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{id}/get-default-version-name", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessGetDefaultVersionNameResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs index 16a2afc..93dccae 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.GetRefinedPrompt.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetRefinedPromptSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetRefinedPromptSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetRefinedPromptSecurityRequirement0, + }; partial void PrepareGetRefinedPromptArguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -54,12 +73,18 @@ partial void ProcessGetRefinedPromptResponseContent( refinementJobId: ref refinementJobId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRefinedPromptSecurityRequirements, + operationName: "GetRefinedPromptAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/refine", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("refinement_job_id", refinementJobId) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -69,7 +94,7 @@ partial void ProcessGetRefinedPromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs index 08d29ce..d5fde15 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessListResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/inference-runs/{id}/indicators/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs index 88f48e8..2c065be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List3SecurityRequirement0, + }; partial void PrepareList3Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,12 +68,18 @@ partial void ProcessList3ResponseContent( ordering: ref ordering, promptId: ref promptId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List3SecurityRequirements, + operationName: "List3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessList3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs index 19d4a72..8432728 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.List4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List4SecurityRequirement0, + }; partial void PrepareList4Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -69,6 +88,12 @@ partial void ProcessList4ResponseContent( promptId: ref promptId, versionId: ref versionId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List4SecurityRequirements, + operationName: "List4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/inference-runs", baseUri: HttpClient.BaseAddress); @@ -77,7 +102,7 @@ partial void ProcessList4ResponseContent( .AddOptionalParameter("parent_model", parentModel?.ToString()) .AddOptionalParameter("project", project?.ToString()) .AddOptionalParameter("project_subset", projectSubset?.ToValueString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -87,7 +112,7 @@ partial void ProcessList4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs index 20339c9..88c7d92 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.RefinePrompt.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RefinePromptSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RefinePromptSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RefinePromptSecurityRequirement0, + }; partial void PrepareRefinePromptArguments( global::System.Net.Http.HttpClient httpClient, ref bool? async, @@ -62,12 +81,18 @@ partial void ProcessRefinePromptResponseContent( versionId: ref versionId, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RefinePromptSecurityRequirements, + operationName: "RefinePromptAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}/refine", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("async", async?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -77,7 +102,7 @@ partial void ProcessRefinePromptResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs index 7f59579..776d209 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class PromptsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int promptId, @@ -57,9 +76,15 @@ partial void ProcessUpdate2ResponseContent( versionId: ref versionId, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/prompts/{promptId}/versions/{versionId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -69,7 +94,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs index 87b8447..36efb95 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class PromptsClient : global::LabelStudio.IPromptsClient, /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Security.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Security.g.cs new file mode 100644 index 0000000..c8b1e01 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Security.g.cs @@ -0,0 +1,145 @@ +#nullable enable + +namespace LabelStudio +{ + internal sealed class EndPointAuthorizationRequirement + { + internal string Type { get; set; } = string.Empty; + + internal string Location { get; set; } = string.Empty; + + internal string Name { get; set; } = string.Empty; + + internal string FriendlyName { get; set; } = string.Empty; + } + + internal sealed class EndPointSecurityRequirement + { + internal global::System.Collections.Generic.IReadOnlyList Authorizations { get; set; } = + global::System.Array.Empty(); + } + + internal static class EndPointSecurityResolver + { + internal static global::System.Collections.Generic.List ResolveAuthorizations( + global::System.Collections.Generic.IReadOnlyList availableAuthorizations, + global::System.Collections.Generic.IReadOnlyList securityRequirements, + string operationName) + { + availableAuthorizations = availableAuthorizations ?? throw new global::System.ArgumentNullException(nameof(availableAuthorizations)); + securityRequirements = securityRequirements ?? throw new global::System.ArgumentNullException(nameof(securityRequirements)); + operationName = operationName ?? throw new global::System.ArgumentNullException(nameof(operationName)); + + if (securityRequirements.Count == 0) + { + return new global::System.Collections.Generic.List(); + } + + var allowsAnonymous = false; + + foreach (var requirement in securityRequirements) + { + if (requirement.Authorizations.Count == 0) + { + allowsAnonymous = true; + continue; + } + + var selected = new global::System.Collections.Generic.List(requirement.Authorizations.Count); + var satisfied = true; + + foreach (var requiredAuthorization in requirement.Authorizations) + { + var found = false; + + for (var i = 0; i < availableAuthorizations.Count; i++) + { + if (!Matches(availableAuthorizations[i], requiredAuthorization)) + { + continue; + } + + selected.Add(availableAuthorizations[i]); + found = true; + break; + } + + if (!found) + { + satisfied = false; + break; + } + } + + if (satisfied) + { + return selected; + } + } + + if (allowsAnonymous) + { + return new global::System.Collections.Generic.List(); + } + + throw new global::System.InvalidOperationException( + $"Operation '{operationName}' requires one of the configured security alternatives: {DescribeRequirements(securityRequirements)}."); + } + + private static bool Matches( + EndPointAuthorization availableAuthorization, + EndPointAuthorizationRequirement requiredAuthorization) + { + if (!string.Equals(availableAuthorization.Type, requiredAuthorization.Type, global::System.StringComparison.Ordinal)) + { + return false; + } + + return requiredAuthorization.Type switch + { + "OAuth2" => true, + "Http" => string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + "ApiKey" => string.Equals( + availableAuthorization.Location, + requiredAuthorization.Location, + global::System.StringComparison.Ordinal) && + string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + _ => string.Equals( + availableAuthorization.Location, + requiredAuthorization.Location, + global::System.StringComparison.Ordinal) && + string.Equals( + availableAuthorization.Name, + requiredAuthorization.Name, + global::System.StringComparison.Ordinal), + }; + } + + private static string DescribeRequirements( + global::System.Collections.Generic.IReadOnlyList securityRequirements) + { + var parts = new global::System.Collections.Generic.List(securityRequirements.Count); + + foreach (var requirement in securityRequirements) + { + if (requirement.Authorizations.Count == 0) + { + parts.Add("anonymous"); + continue; + } + + parts.Add(string.Join( + " + ", + global::System.Linq.Enumerable.Select(requirement.Authorizations, static x => x.FriendlyName))); + } + + return string.Join(" or ", parts); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs index c75360b..051b49c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SessionPolicyClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetRequest( @@ -33,9 +52,15 @@ partial void ProcessGetResponseContent( PrepareGetArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/session-policy/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs index eada1f9..641037b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SessionPolicyClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.PatchedSessionTimeoutPolicyRequest request); @@ -41,9 +60,15 @@ partial void ProcessUpdateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/session-policy/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -53,7 +78,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs index fd80e48..b5c9537 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SessionPolicyClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class SessionPolicyClient : global::LabelStudio.ISessionPo /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs index c237938..a408b35 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetRequest( @@ -39,9 +58,15 @@ partial void ProcessGetResponseContent( PrepareGetArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/saml/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs index a46a8e6..a1ac33a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGet2Request( @@ -39,9 +58,15 @@ partial void ProcessGet2ResponseContent( PrepareGet2Arguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/scim/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Reset.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Reset.g.cs index ebebae2..4e76865 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Reset.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Reset.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ResetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ResetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ResetSecurityRequirement0, + }; partial void PrepareResetArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareResetRequest( @@ -34,9 +53,15 @@ partial void ProcessResetResponse( PrepareResetArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ResetSecurityRequirements, + operationName: "ResetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/saml/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -46,7 +71,7 @@ partial void ProcessResetResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs index daaefd2..e522e52 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.SamlSettingsUpdateRequest request); @@ -47,9 +66,15 @@ partial void ProcessUpdateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/saml/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -201,6 +226,9 @@ partial void ProcessUpdateResponseContent( /// /// Identity Provider preset key (e.g. okta, azure, google, custom) /// + /// + /// Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + /// /// /// Mapping attributes: user email from SAML request /// @@ -233,6 +261,7 @@ partial void ProcessUpdateResponseContent( public async global::System.Threading.Tasks.Task UpdateAsync( string? domain = default, string? idpProvider = default, + bool? manualRoleManagement = default, string? mappingEmail = default, string? mappingFirstName = default, string? mappingGroups = default, @@ -248,6 +277,7 @@ partial void ProcessUpdateResponseContent( { Domain = domain, IdpProvider = idpProvider, + ManualRoleManagement = manualRoleManagement, MappingEmail = mappingEmail, MappingFirstName = mappingFirstName, MappingGroups = mappingGroups, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs index f54489f..5fa4e21 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ScimSettingsUpdateRequest request); @@ -47,9 +66,15 @@ partial void ProcessUpdate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/scim/settings", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs index d6f6119..7473519 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.ValidateMetadataUrl.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class SsoClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateMetadataUrlSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateMetadataUrlSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateMetadataUrlSecurityRequirement0, + }; partial void PrepareValidateMetadataUrlArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ValidateSamlMetadataUrlRequestRequest request); @@ -29,7 +48,7 @@ partial void ProcessValidateMetadataUrlResponseContent( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Validate a SAML metadata URL by fetching it and checking whether it returns valid XML, without saving any settings. + /// Validate a SAML metadata URL by fetching it and checking for valid XML, without saving. ///
/// /// The token to cancel the operation with @@ -47,9 +66,15 @@ partial void ProcessValidateMetadataUrlResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateMetadataUrlSecurityRequirements, + operationName: "ValidateMetadataUrlAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/saml/settings/validate-metadata-url", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessValidateMetadataUrlResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -193,7 +218,7 @@ partial void ProcessValidateMetadataUrlResponseContent( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Validate a SAML metadata URL by fetching it and checking whether it returns valid XML, without saving any settings. + /// Validate a SAML metadata URL by fetching it and checking for valid XML, without saving. ///
/// /// The token to cancel the operation with diff --git a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs index ba9fba5..c06f2e4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.SsoClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class SsoClient : global::LabelStudio.ISsoClient, global:: /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs index b162874..b5112a0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.CancelBackfill.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CancelBackfillSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CancelBackfillSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CancelBackfillSecurityRequirement0, + }; partial void PrepareCancelBackfillArguments( global::System.Net.Http.HttpClient httpClient, ref int? jobId, @@ -49,13 +68,19 @@ partial void ProcessCancelBackfillResponseContent( jobId: ref jobId, projectId: ref projectId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CancelBackfillSecurityRequirements, + operationName: "CancelBackfillAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/fsm/backfill/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("job_id", jobId?.ToString()) .AddOptionalParameter("project_id", projectId?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -65,7 +90,7 @@ partial void ProcessCancelBackfillResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs index e7a0e8d..aa92f4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ExecuteTransition.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ExecuteTransitionSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ExecuteTransitionSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ExecuteTransitionSecurityRequirement0, + }; partial void PrepareExecuteTransitionArguments( global::System.Net.Http.HttpClient httpClient, ref int entityId, @@ -57,9 +76,15 @@ partial void ProcessExecuteTransitionResponseContent( entityName: ref entityName, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ExecuteTransitionSecurityRequirements, + operationName: "ExecuteTransitionAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/fsm/entities/{entityName}/{entityId}/transition/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -69,7 +94,7 @@ partial void ProcessExecuteTransitionResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs index 9c8308b..123f647 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.GetBackfillStatus.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetBackfillStatusSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetBackfillStatusSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetBackfillStatusSecurityRequirement0, + }; partial void PrepareGetBackfillStatusArguments( global::System.Net.Http.HttpClient httpClient, ref int? jobId, @@ -49,13 +68,19 @@ partial void ProcessGetBackfillStatusResponseContent( jobId: ref jobId, projectId: ref projectId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetBackfillStatusSecurityRequirements, + operationName: "GetBackfillStatusAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/fsm/backfill/status/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("job_id", jobId?.ToString()) .AddOptionalParameter("project_id", projectId?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessGetBackfillStatusResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs index 30cc40d..7c2420f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.ListBackfills.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListBackfillsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListBackfillsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListBackfillsSecurityRequirement0, + }; partial void PrepareListBackfillsArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareListBackfillsRequest( @@ -39,9 +58,15 @@ partial void ProcessListBackfillsResponseContent( PrepareListBackfillsArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListBackfillsSecurityRequirements, + operationName: "ListBackfillsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/fsm/backfill/jobs/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessListBackfillsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs index edd13ee..ae0b493 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.StateHistory.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_StateHistorySecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_StateHistorySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_StateHistorySecurityRequirement0, + }; partial void PrepareStateHistoryArguments( global::System.Net.Http.HttpClient httpClient, ref string? createdAtFrom, @@ -94,6 +113,12 @@ partial void ProcessStateHistoryResponseContent( transitionName: ref transitionName, triggeredBy: ref triggeredBy); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_StateHistorySecurityRequirements, + operationName: "StateHistoryAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/fsm/entities/{entityName}/{entityId}/history", baseUri: HttpClient.BaseAddress); @@ -107,7 +132,7 @@ partial void ProcessStateHistoryResponseContent( .AddOptionalParameter("state", state) .AddOptionalParameter("transition_name", transitionName) .AddOptionalParameter("triggered_by", triggeredBy?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -117,7 +142,7 @@ partial void ProcessStateHistoryResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs index 9cae826..ff9bf75 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.TriggerBackfill.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_TriggerBackfillSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_TriggerBackfillSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_TriggerBackfillSecurityRequirement0, + }; partial void PrepareTriggerBackfillArguments( global::System.Net.Http.HttpClient httpClient, ref int? projectId); @@ -44,12 +63,18 @@ partial void ProcessTriggerBackfillResponseContent( httpClient: HttpClient, projectId: ref projectId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TriggerBackfillSecurityRequirements, + operationName: "TriggerBackfillAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/fsm/backfill/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project_id", projectId?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessTriggerBackfillResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs index 6b1739d..6bad7b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StatesClient : global::LabelStudio.IStatesClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs index 98f8a99..004d191 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotator.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AgreementAnnotatorSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AgreementAnnotatorSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AgreementAnnotatorSecurityRequirement0, + }; partial void PrepareAgreementAnnotatorArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessAgreementAnnotatorResponseContent( id: ref id, userId: ref userId); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AgreementAnnotatorSecurityRequirements, + operationName: "AgreementAnnotatorAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/agreement_annotator/{userId}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessAgreementAnnotatorResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs index 1256d67..91bf175 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.AgreementAnnotators.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AgreementAnnotatorsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AgreementAnnotatorsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AgreementAnnotatorsSecurityRequirement0, + }; partial void PrepareAgreementAnnotatorsArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,12 +68,18 @@ partial void ProcessAgreementAnnotatorsResponseContent( id: ref id, ids: ref ids); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AgreementAnnotatorsSecurityRequirements, + operationName: "AgreementAnnotatorsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/agreement_annotators", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("ids", ids) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessAgreementAnnotatorsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs index 1ee3ac8..3363dcf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.DataFilters.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DataFiltersSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DataFiltersSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DataFiltersSecurityRequirement0, + }; partial void PrepareDataFiltersArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessDataFiltersResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DataFiltersSecurityRequirements, + operationName: "DataFiltersAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/data_filter", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessDataFiltersResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs index 407f312..d9ec5b0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.FinishedTasks.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_FinishedTasksSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_FinishedTasksSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_FinishedTasksSecurityRequirement0, + }; partial void PrepareFinishedTasksArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,12 +68,18 @@ partial void ProcessFinishedTasksResponseContent( id: ref id, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_FinishedTasksSecurityRequirements, + operationName: "FinishedTasksAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/finished", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("user_pk", userPk?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessFinishedTasksResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs index 62d8d49..cf96ab5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.Iaa.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_IaaSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_IaaSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_IaaSecurityRequirement0, + }; partial void PrepareIaaArguments( global::System.Net.Http.HttpClient httpClient, ref string? expand, @@ -68,6 +87,12 @@ partial void ProcessIaaResponseContent( std: ref std, task: ref task); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_IaaSecurityRequirements, + operationName: "IaaAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/IAA", baseUri: HttpClient.BaseAddress); @@ -76,7 +101,7 @@ partial void ProcessIaaResponseContent( .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) .AddOptionalParameter("std", std?.ToString().ToLowerInvariant()) .AddOptionalParameter("task", task) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -86,7 +111,7 @@ partial void ProcessIaaResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs index 54695fc..b270f28 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionCounts.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_LabelDistributionCountsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_LabelDistributionCountsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_LabelDistributionCountsSecurityRequirement0, + }; partial void PrepareLabelDistributionCountsArguments( global::System.Net.Http.HttpClient httpClient, ref string? choiceKeys, @@ -61,6 +80,12 @@ partial void ProcessLabelDistributionCountsResponseContent( limit: ref limit, offset: ref offset); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LabelDistributionCountsSecurityRequirements, + operationName: "LabelDistributionCountsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/label-distribution/counts", baseUri: HttpClient.BaseAddress); @@ -68,7 +93,7 @@ partial void ProcessLabelDistributionCountsResponseContent( .AddOptionalParameter("choice_keys", choiceKeys) .AddOptionalParameter("limit", limit?.ToString()) .AddOptionalParameter("offset", offset?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -78,7 +103,7 @@ partial void ProcessLabelDistributionCountsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs index c5bba16..dbbf226 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LabelDistributionStructure.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_LabelDistributionStructureSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_LabelDistributionStructureSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_LabelDistributionStructureSecurityRequirement0, + }; partial void PrepareLabelDistributionStructureArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessLabelDistributionStructureResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LabelDistributionStructureSecurityRequirements, + operationName: "LabelDistributionStructureAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/label-distribution/structure", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessLabelDistributionStructureResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs index 6db8222..8406ccb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.LeadTime.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_LeadTimeSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_LeadTimeSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_LeadTimeSecurityRequirement0, + }; partial void PrepareLeadTimeArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessLeadTimeResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_LeadTimeSecurityRequirements, + operationName: "LeadTimeAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/lead_time", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessLeadTimeResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs index eedb6f5..623bd61 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionAnnotatorAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ModelVersionAnnotatorAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ModelVersionAnnotatorAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ModelVersionAnnotatorAgreementSecurityRequirement0, + }; partial void PrepareModelVersionAnnotatorAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessModelVersionAnnotatorAgreementResponseContent( id: ref id, modelVersion: ref modelVersion); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ModelVersionAnnotatorAgreementSecurityRequirements, + operationName: "ModelVersionAnnotatorAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/model-stats/{modelVersion}/agreement", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessModelVersionAnnotatorAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs index e7e7b0c..8675d74 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionGroundTruthAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ModelVersionGroundTruthAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ModelVersionGroundTruthAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ModelVersionGroundTruthAgreementSecurityRequirement0, + }; partial void PrepareModelVersionGroundTruthAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -56,12 +75,18 @@ partial void ProcessModelVersionGroundTruthAgreementResponseContent( modelVersion: ref modelVersion, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ModelVersionGroundTruthAgreementSecurityRequirements, + operationName: "ModelVersionGroundTruthAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/model-stats/{modelVersion}/agreement-groundtruth", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -71,7 +96,7 @@ partial void ProcessModelVersionGroundTruthAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs index 1fbd38f..bcfdb6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.ModelVersionPredictionAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ModelVersionPredictionAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ModelVersionPredictionAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ModelVersionPredictionAgreementSecurityRequirement0, + }; partial void PrepareModelVersionPredictionAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -56,12 +75,18 @@ partial void ProcessModelVersionPredictionAgreementResponseContent( modelVersion: ref modelVersion, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ModelVersionPredictionAgreementSecurityRequirements, + operationName: "ModelVersionPredictionAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/model-stats/{modelVersion}/prediction", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -71,7 +96,7 @@ partial void ProcessModelVersionPredictionAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs index 7117bdc..fc4dad9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_TotalAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_TotalAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_TotalAgreementSecurityRequirement0, + }; partial void PrepareTotalAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -50,12 +69,18 @@ partial void ProcessTotalAgreementResponseContent( id: ref id, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_TotalAgreementSecurityRequirements, + operationName: "TotalAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/total_agreement", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessTotalAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UpdateStats.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UpdateStats.g.cs index 90e452e..bfe5fba 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UpdateStats.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UpdateStats.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateStatsSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateStatsSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateStatsSecurityRequirement0, + }; partial void PrepareUpdateStatsArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,12 +68,18 @@ partial void ProcessUpdateStatsResponseContent( id: ref id, statType: ref statType); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateStatsSecurityRequirements, + operationName: "UpdateStatsAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/update-stats", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("stat_type", statType) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessUpdateStatsResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs index 0555b2b..18eb2c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserGroundTruthAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UserGroundTruthAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UserGroundTruthAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UserGroundTruthAgreementSecurityRequirement0, + }; partial void PrepareUserGroundTruthAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,12 +73,18 @@ partial void ProcessUserGroundTruthAgreementResponseContent( perLabel: ref perLabel, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UserGroundTruthAgreementSecurityRequirements, + operationName: "UserGroundTruthAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/users/{userPk}/stats/agreement-groundtruth", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -69,7 +94,7 @@ partial void ProcessUserGroundTruthAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs index 93684e2..acd56b7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserPredictionAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UserPredictionAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UserPredictionAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UserPredictionAgreementSecurityRequirement0, + }; partial void PrepareUserPredictionAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,12 +73,18 @@ partial void ProcessUserPredictionAgreementResponseContent( perLabel: ref perLabel, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UserPredictionAgreementSecurityRequirements, + operationName: "UserPredictionAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/user-stats/{userPk}/prediction", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -69,7 +94,7 @@ partial void ProcessUserPredictionAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs index 097824b..313848c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UserReviewScore.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UserReviewScoreSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UserReviewScoreSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UserReviewScoreSecurityRequirement0, + }; partial void PrepareUserReviewScoreArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,12 +73,18 @@ partial void ProcessUserReviewScoreResponseContent( perLabel: ref perLabel, userPk: ref userPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UserReviewScoreSecurityRequirements, + operationName: "UserReviewScoreAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/user-stats/{userPk}/review_score", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -69,7 +94,7 @@ partial void ProcessUserReviewScoreResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs index 7f5e5ca..cbd37e4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersGroundTruthAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UsersGroundTruthAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UsersGroundTruthAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UsersGroundTruthAgreementSecurityRequirement0, + }; partial void PrepareUsersGroundTruthAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -56,13 +75,19 @@ partial void ProcessUsersGroundTruthAgreementResponseContent( ids: ref ids, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersGroundTruthAgreementSecurityRequirements, + operationName: "UsersGroundTruthAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/stats/agreement-groundtruth", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("ids", ids) .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -72,7 +97,7 @@ partial void ProcessUsersGroundTruthAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs index 5ed946f..42be430 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersPredictionAgreement.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UsersPredictionAgreementSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UsersPredictionAgreementSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UsersPredictionAgreementSecurityRequirement0, + }; partial void PrepareUsersPredictionAgreementArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -56,13 +75,19 @@ partial void ProcessUsersPredictionAgreementResponseContent( ids: ref ids, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersPredictionAgreementSecurityRequirements, + operationName: "UsersPredictionAgreementAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/user-stats/prediction", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("ids", ids) .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -72,7 +97,7 @@ partial void ProcessUsersPredictionAgreementResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs index 400485c..18791dd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.UsersReviewScore.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StatsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UsersReviewScoreSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UsersReviewScoreSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UsersReviewScoreSecurityRequirement0, + }; partial void PrepareUsersReviewScoreArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,13 +73,19 @@ partial void ProcessUsersReviewScoreResponseContent( ids: ref ids, perLabel: ref perLabel); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersReviewScoreSecurityRequirements, + operationName: "UsersReviewScoreAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/user-stats/review_score", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("ids", ids) .AddOptionalParameter("per_label", perLabel?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -70,7 +95,7 @@ partial void ProcessUsersReviewScoreResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs index c49a3c1..a6e4b57 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StatsClient : global::LabelStudio.IStatsClient, glob /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs index d681e83..c74b75e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesAzureCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs index 3e43e06..be7d838 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportAzureCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete.g.cs index 8654cbb..1da9e14 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete2.g.cs index 49ff504..1aa3cfd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs index 9ca641c..c1b618d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs index 5d95f39..3c7189d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs index 5e77c57..567d982 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs index 1aa4cdf..ab7cc24 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs index 3ff955d..1f5d51f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs index 79d07b8..03eda3e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs index 9fcfa92..7288e25 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs index 06198c6..cf6d85c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs index b36c5cb..4c084da 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesAzureValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs index e101fe9..37df8e4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs index b6157c7..26c3350 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageAzureClient : global::LabelStudio.IStorageAzu /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs index 55e2a05..9d129f3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureServicePrincipalImportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure_spi/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs index d94495e..8d20d97 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureServicePrincipalExportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure_spi", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete.g.cs index f317c86..d7244c7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete2.g.cs index f4157be..356bb82 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs index fbf84eb..b8aeb4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs index c35f1e5..41b80b3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs index a631050..9a1c769 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure_spi/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs index 6f74cca..a8ec8b5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure_spi", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs index 694666f..b666a09 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure_spi/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs index dadc914..f201310 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure_spi/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs index bf92284..57514a4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs index 02c7c7d..fb76b0e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/azure_spi/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs index 8c7bb8a..3a71f6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureServicePrincipalImportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/azure_spi/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs index 470a040..cf1d626 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageAzureSpiClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.AzureServicePrincipalExportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/azure_spi/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs index b8660a4..78098b9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageAzureSpiClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageAzureSpiClient : global::LabelStudio.IStorage /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs index 3d70702..8518e78 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesList.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesListSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -33,12 +52,18 @@ partial void ProcessApiDatasetStoragesListResponse( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesListSecurityRequirements, + operationName: "ApiDatasetStoragesListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -48,7 +73,7 @@ partial void ProcessApiDatasetStoragesListResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs index 1ba0fbb..e1d2505 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ApiDatasetStoragesTypesRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiDatasetStoragesTypesRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiDatasetStoragesTypesRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiDatasetStoragesTypesRetrieveSecurityRequirement0, + }; partial void PrepareApiDatasetStoragesTypesRetrieveArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareApiDatasetStoragesTypesRetrieveRequest( @@ -28,9 +47,15 @@ partial void ProcessApiDatasetStoragesTypesRetrieveResponse( PrepareApiDatasetStoragesTypesRetrieveArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiDatasetStoragesTypesRetrieveSecurityRequirements, + operationName: "ApiDatasetStoragesTypesRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dataset-storages/types/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -40,7 +65,7 @@ partial void ProcessApiDatasetStoragesTypesRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs index 4dc5032..a6780c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs index cd05507..9972033 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessList2ResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs index 6587402..cf1e8e1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListTypesSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListTypesSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListTypesSecurityRequirement0, + }; partial void PrepareListTypesArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareListTypesRequest( @@ -33,9 +52,15 @@ partial void ProcessListTypesResponseContent( PrepareListTypesArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTypesSecurityRequirements, + operationName: "ListTypesAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/types", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessListTypesResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs index 8008cce..498117d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.ListTypes2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListTypes2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListTypes2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListTypes2SecurityRequirement0, + }; partial void PrepareListTypes2Arguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareListTypes2Request( @@ -33,9 +52,15 @@ partial void ProcessListTypes2ResponseContent( PrepareListTypes2Arguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTypes2SecurityRequirements, + operationName: "ListTypes2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/types", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessListTypes2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs index 168dba7..efe9ef5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageClient : global::LabelStudio.IStorageClient, /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs index 392495d..473c435 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatabricksImportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/databricks/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs index 4c7e048..52a90ed 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatabricksExportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/databricks", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete.g.cs index 9aca070..82ede21 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete2.g.cs index a2653df..67af847 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs index 32458fa..a9895a5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs index 1dd8a03..b1ec845 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs index 8b88e20..696d040 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/databricks/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs index 916e2cb..dd68b30 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/databricks", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs index b978f55..efc5b79 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/databricks/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs index c97030c..d3f0a41 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/databricks/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs index e924342..f28adb6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs index cf2b6f2..038f0c0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/databricks/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs index 8bb43d9..e37c4f0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatabricksImportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/databricks/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs index 92855a3..f914a3d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageDatabricksFilesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.DatabricksExportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/databricks/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs index 0d3d9a8..8e21b1c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageDatabricksFilesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageDatabricksFilesClient : global::LabelStudio.I /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs index a180c84..7503519 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportGcsCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcs", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs index b45755f..fc5e457 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesGcsCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcs/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete.g.cs index a81f6e0..0f37edf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete2.g.cs index b177de2..5c2039c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs index 4a7f71b..6ec7bda 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs index abec951..55fb21d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs index 8bd3e81..b894163 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcs", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs index a97dacd..f451c5e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcs/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs index 24fcf7d..6aa1434 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcs/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs index 0e667c4..dff369a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcs/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs index 977dead..96bdbfb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs index ab272c5..91572f3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcs/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs index 800aa38..b77fdf7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcs/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs index 803463a..b88f0de 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesGcsValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcs/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs index 1522e9d..afa140a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageGcsClient : global::LabelStudio.IStorageGcsCl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create.g.cs new file mode 100644 index 0000000..6755194 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create.g.cs @@ -0,0 +1,327 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; + partial void PrepareCreateArguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.GCSSAExportStorageRequest request); + partial void PrepareCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.GCSSAExportStorageRequest request); + partial void ProcessCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Create GCS export storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a GCS export storage connection with SA Impersonation to store annotations. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateAsync( + + global::LabelStudio.GCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/export/gcs_sa", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAExportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Create GCS export storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a GCS export storage connection with SA Impersonation to store annotations. + ///
+ /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateAsync( + int project, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.GCSSAExportStorageRequest + { + Bucket = bucket, + CanDeleteObjects = canDeleteObjects, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Project = project, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + return await CreateAsync( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create2.g.cs new file mode 100644 index 0000000..4ba51f6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Create2.g.cs @@ -0,0 +1,337 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; + partial void PrepareCreate2Arguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.GCSSAImportStorageRequest request); + partial void PrepareCreate2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.GCSSAImportStorageRequest request); + partial void ProcessCreate2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreate2ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Create GCS import storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create GCS import storage with Service Account Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Create2Async( + + global::LabelStudio.GCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreate2Arguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/gcs_sa/", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreate2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreate2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreate2ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAImportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Create GCS import storage with SA Impersonation
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create GCS import storage with Service Account Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Create2Async( + int project, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.GCSSAImportStorageRequest + { + Bucket = bucket, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Presign = presign, + PresignTtl = presignTtl, + Project = project, + RecursiveScan = recursiveScan, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + return await Create2Async( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete.g.cs new file mode 100644 index 0000000..c485b81 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete.g.cs @@ -0,0 +1,184 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; + partial void PrepareDeleteArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareDeleteRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessDeleteResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Delete GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/export/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete2.g.cs new file mode 100644 index 0000000..e748a1c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Delete2.g.cs @@ -0,0 +1,184 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; + partial void PrepareDelete2Arguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareDelete2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessDelete2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Delete GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Delete2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDelete2Arguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDelete2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDelete2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get.g.cs new file mode 100644 index 0000000..e57eb1d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; + partial void PrepareGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/export/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAExportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get2.g.cs new file mode 100644 index 0000000..b8d019c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Get2.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; + partial void PrepareGet2Arguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareGet2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessGet2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGet2ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Get2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGet2Arguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGet2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGet2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGet2ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAImportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List.g.cs new file mode 100644 index 0000000..32b17d3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List.g.cs @@ -0,0 +1,215 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; + partial void PrepareListArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int project); + partial void PrepareListRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int project); + partial void ProcessListResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get all GCS SA export storages
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get a list of all GCS export storage connections set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListAsync( + int project, + string? ordering = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListArguments( + httpClient: HttpClient, + ordering: ref ordering, + project: ref project); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/export/gcs_sa", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddRequiredParameter("project", project.ToString()!) + ; + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + project: project); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessListResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List2.g.cs new file mode 100644 index 0000000..c23a770 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.List2.g.cs @@ -0,0 +1,215 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; + partial void PrepareList2Arguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int project); + partial void PrepareList2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int project); + partial void ProcessList2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessList2ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get all GCS SA import storages
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Get list of all GCS import storage connections set up with Service Account Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> List2Async( + int project, + string? ordering = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareList2Arguments( + httpClient: HttpClient, + ordering: ref ordering, + project: ref project); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/gcs_sa/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddRequiredParameter("project", project.ToString()!) + ; + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareList2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + project: project); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessList2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessList2ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync.g.cs new file mode 100644 index 0000000..abb6e33 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; + partial void PrepareSyncArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareSyncRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessSyncResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSyncResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Sync GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Sync annotations to a GCS SA export storage. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task SyncAsync( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareSyncArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/export/gcs_sa/{id}/sync", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSyncRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSyncResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSyncResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAExportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync2.g.cs new file mode 100644 index 0000000..4e99d0e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Sync2.g.cs @@ -0,0 +1,205 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; + partial void PrepareSync2Arguments( + global::System.Net.Http.HttpClient httpClient, + ref int id); + partial void PrepareSync2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id); + partial void ProcessSync2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSync2ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Sync GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Sync tasks from a GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Sync2Async( + int id, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareSync2Arguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/gcs_sa/{id}/sync", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSync2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSync2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessSync2ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAImportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update.g.cs new file mode 100644 index 0000000..638488c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update.g.cs @@ -0,0 +1,336 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; + partial void PrepareUpdateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + global::LabelStudio.PatchedGCSSAExportStorageRequest request); + partial void PrepareUpdateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + global::LabelStudio.PatchedGCSSAExportStorageRequest request); + partial void ProcessUpdateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Update GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateAsync( + int id, + + global::LabelStudio.PatchedGCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/export/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAExportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAExportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Update GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateAsync( + int id, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + int? project = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.PatchedGCSSAExportStorageRequest + { + Bucket = bucket, + CanDeleteObjects = canDeleteObjects, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Project = project, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + return await UpdateAsync( + id: id, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update2.g.cs new file mode 100644 index 0000000..2cf206e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Update2.g.cs @@ -0,0 +1,346 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; + partial void PrepareUpdate2Arguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + global::LabelStudio.PatchedGCSSAImportStorageRequest request); + partial void PrepareUpdate2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + global::LabelStudio.PatchedGCSSAImportStorageRequest request); + partial void ProcessUpdate2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdate2ResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Update GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Update2Async( + int id, + + global::LabelStudio.PatchedGCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdate2Arguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: $"/api/storages/gcs_sa/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdate2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdate2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdate2ResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.GCSSAImportStorage.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.GCSSAImportStorage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Update GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Update2Async( + int id, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + int? project = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.PatchedGCSSAImportStorageRequest + { + Bucket = bucket, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Presign = presign, + PresignTtl = presignTtl, + Project = project, + RecursiveScan = recursiveScan, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + return await Update2Async( + id: id, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate.g.cs new file mode 100644 index 0000000..2a9c278 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate.g.cs @@ -0,0 +1,306 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; + partial void PrepareValidateArguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.GCSSAExportStorageRequest request); + partial void PrepareValidateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.GCSSAExportStorageRequest request); + partial void ProcessValidateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Validate GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ValidateAsync( + + global::LabelStudio.GCSSAExportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareValidateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/export/gcs_sa/validate", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareValidateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessValidateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Validate GCS SA export storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS export storage connection set up with SA Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Deletion from storage enabled + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ValidateAsync( + int project, + string? bucket = default, + bool? canDeleteObjects = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.GCSSAExportStorageRequest + { + Bucket = bucket, + CanDeleteObjects = canDeleteObjects, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Project = project, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + await ValidateAsync( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate2.g.cs new file mode 100644 index 0000000..19e2aa8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.Validate2.g.cs @@ -0,0 +1,316 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class StorageGcsSaClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; + partial void PrepareValidate2Arguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.GCSSAImportStorageRequest request); + partial void PrepareValidate2Request( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.GCSSAImportStorageRequest request); + partial void ProcessValidate2Response( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Validate GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Validate2Async( + + global::LabelStudio.GCSSAImportStorageRequest request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareValidate2Arguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/storages/gcs_sa/validate", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareValidate2Request( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessValidate2Response( + httpClient: HttpClient, + httpResponseMessage: __response); + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( +#if NET5_0_OR_GREATER + cancellationToken +#endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } + /// + /// ✨ Validate GCS SA import storage
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Validate a specific GCS import storage connection set up with SA Impersonation. + ///
+ /// + /// GCS bucket name + /// + /// + /// Cloud storage description + /// + /// + /// Google project ID + /// + /// + /// Last sync finished time + /// + /// + /// Count of tasks synced last time + /// + /// + /// Last sync job ID + /// + /// + /// Meta and debug information about storage processes + /// + /// + /// GCS bucket prefix + /// + /// + /// Default Value: true + /// + /// + /// Presigned URLs TTL (in minutes) + /// + /// + /// A unique integer value identifying this project. + /// + /// + /// Perform recursive scan over the bucket content + /// + /// + /// Cloud storage regex for filtering objects + /// + /// + /// * `initialized` - Initialized
+ /// * `queued` - Queued
+ /// * `in_progress` - In progress
+ /// * `failed` - Failed
+ /// * `completed` - Completed
+ /// * `completed_with_errors` - Completed with errors + /// + /// + /// Default Value: true + /// + /// + /// Service account email to impersonate for GCS access + /// + /// + /// Cloud storage title + /// + /// + /// Traceback report for the last failed sync + /// + /// + /// Interpret objects as BLOBs and generate URLs + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task Validate2Async( + int project, + string? bucket = default, + string? description = default, + string? googleProjectId = default, + global::System.DateTime? lastSync = default, + int? lastSyncCount = default, + string? lastSyncJob = default, + object? meta = default, + string? prefix = default, + bool? presign = default, + int? presignTtl = default, + bool? recursiveScan = default, + string? regexFilter = default, + global::LabelStudio.StatusC5aEnum? status = default, + bool? synchronizable = default, + string? targetServiceAccountEmail = default, + string? title = default, + string? traceback = default, + bool? useBlobUrls = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.GCSSAImportStorageRequest + { + Bucket = bucket, + Description = description, + GoogleProjectId = googleProjectId, + LastSync = lastSync, + LastSyncCount = lastSyncCount, + LastSyncJob = lastSyncJob, + Meta = meta, + Prefix = prefix, + Presign = presign, + PresignTtl = presignTtl, + Project = project, + RecursiveScan = recursiveScan, + RegexFilter = regexFilter, + Status = status, + Synchronizable = synchronizable, + TargetServiceAccountEmail = targetServiceAccountEmail, + Title = title, + Traceback = traceback, + UseBlobUrls = useBlobUrls, + }; + + await Validate2Async( + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.g.cs new file mode 100644 index 0000000..dde36cf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsSaClient.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class StorageGcsSaClient : global::LabelStudio.IStorageGcsSaClient, global::System.IDisposable + { + /// + /// Label Studio + /// + public const string DefaultBaseUrl = "http://localhost:8000/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the StorageGcsSaClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public StorageGcsSaClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) + { + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs index 2170241..8562ec0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSWIFExportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcswif", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs index 3b73ef0..750ec10 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSWIFImportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcswif/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete.g.cs index ab695aa..a6ae856 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete2.g.cs index 3bfba20..40f152b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs index 9d59214..a5c803a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs index a290d4a..6fd47eb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs index 5684996..3f419b6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcswif", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs index e34c4ae..0723fb3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcswif/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs index 365730e..67e1e5d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcswif/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs index 91d598b..f2ce5d6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcswif/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs index 2951173..1cf389e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs index 47b0fd1..dc53d6a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/gcswif/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs index 3086c3c..8f0abb1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSWIFExportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/gcswif/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs index 4089e12..5c21929 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageGcsWifClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.GCSWIFImportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/gcswif/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs index 91165c1..6fdf970 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageGcsWifClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageGcsWifClient : global::LabelStudio.IStorageGc /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs index 8318570..c9c6fd3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/localfiles", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs index 1dd7367..1cc4ce5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesLocalfilesCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/localfiles/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete.g.cs index bc1a1a2..692abc7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete2.g.cs index 4808f8c..c8270c2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs index 64d40b7..4ed9cd1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs index d85ab77..7abcf2f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs index b428f78..cccd05d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/localfiles", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs index 22da41d..7710b5b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/localfiles/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs index 978e433..89b06b4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/localfiles/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs index 17f9a50..52057f1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/localfiles/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs index 14d2c81..bf72f4f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs index 030c62c..efc413b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/localfiles/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs index c5827b3..6a0eed3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/localfiles/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs index 68318eb..66cf341 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageLocalClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/localfiles/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs index 31d2bcc..97b4c22 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageLocalClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageLocalClient : global::LabelStudio.IStorageLoc /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs index 4a8e29b..35ade96 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportRedisCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/redis", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs index f7378b4..c6053ea 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesRedisCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/redis/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete.g.cs index 895b45b..6cb756b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete2.g.cs index 6552554..28dff09 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs index 8f9203a..30d30c4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs index e2af1d9..b9db0e0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs index 4d2f5cc..774bbac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/redis", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs index 88b3d10..d3862d6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/redis/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs index d6f8978..dfcffb7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/redis/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs index 32096d7..9c41ae0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/redis/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs index 836c02f..74b8e14 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs index ca25959..6bfe456 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/redis/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs index 7bf1535..754dd9b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/redis/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs index 46e0e4a..ca2f832 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageRedisClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesRedisValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/redis/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs index 48eb89b..d8df713 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageRedisClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageRedisClient : global::LabelStudio.IStorageRed /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs index aa8b238..e959378 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportS3CreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs index 7f2d0b7..184c3f9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesS3CreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete.g.cs index 393094f..cedac4c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete2.g.cs index 358b5f0..49d1d73 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs index e360503..b353992 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs index fd011ad..0de357e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs index 01a9360..c84fa8a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs index c2d6178..d44f836 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -43,13 +62,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -59,7 +84,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs index a46b7d1..ae1e9ac 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs index fa6590c..a530277 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -50,7 +75,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs index 7f9ac07..671c9cd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs index 8558c39..1afe8a8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs index 9239d1a..3dbf280 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs index 844616d..c8f2af1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiStoragesS3ValidateCreateRequest request); @@ -36,9 +55,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs index c7f87a2..1c4d69a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageS3Client : global::LabelStudio.IStorageS3Clie /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs index 3f858aa..269a030 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseS3ExportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3s", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs index 4c23277..4628ee9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseS3ImportStorageRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3s/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete.g.cs index 77119e9..17dee1b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete2.g.cs index 1f2c18d..026d8c6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs index 8370720..ec45aa4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs index ce35ba4..09a1a57 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Get2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Get2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Get2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Get2SecurityRequirement0, + }; partial void PrepareGet2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGet2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Get2SecurityRequirements, + operationName: "Get2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGet2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs index e71e9ad..96ee2ab 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessListResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3s", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs index 65ab03b..572168a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering, @@ -49,13 +68,19 @@ partial void ProcessList2ResponseContent( ordering: ref ordering, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3s/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -65,7 +90,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs index fe8ceab..98a0fb0 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_SyncSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_SyncSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_SyncSecurityRequirement0, + }; partial void PrepareSyncArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSyncResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SyncSecurityRequirements, + operationName: "SyncAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3s/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSyncResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs index ad3ec8c..bb3cd82 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Sync2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Sync2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Sync2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Sync2SecurityRequirement0, + }; partial void PrepareSync2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessSync2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Sync2SecurityRequirements, + operationName: "Sync2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3s/{id}/sync", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -56,7 +81,7 @@ partial void ProcessSync2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs index 1a4c259..52b18a3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/export/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs index 7c3c7ac..01ed827 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/storages/s3s/{id}", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs index 1d975c5..2598bc9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ValidateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ValidateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ValidateSecurityRequirement0, + }; partial void PrepareValidateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseS3ExportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidateResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ValidateSecurityRequirements, + operationName: "ValidateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/export/s3s/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidateResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs index 362422e..4e930c8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.Validate2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class StorageS3RolesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Validate2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Validate2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Validate2SecurityRequirement0, + }; partial void PrepareValidate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseS3ImportStorageRequest request); @@ -42,9 +61,15 @@ partial void ProcessValidate2Response( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Validate2SecurityRequirements, + operationName: "Validate2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/storages/s3s/validate", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -54,7 +79,7 @@ partial void ProcessValidate2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs index c3dabbf..ba2e597 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StorageS3RolesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class StorageS3RolesClient : global::LabelStudio.IStorageS /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs index f77b971..7434626 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LseTaskRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/tasks/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs index 54fab93..6112c46 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateEvent.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateEventSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateEventSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateEventSecurityRequirement0, + }; partial void PrepareCreateEventArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -83,9 +102,15 @@ partial void ProcessCreateEventResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateEventSecurityRequirements, + operationName: "CreateEventAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/events/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -95,7 +120,7 @@ partial void ProcessCreateEventResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs index 937eced..a44574b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.CreateManyStatus.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateManyStatusSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateManyStatusSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateManyStatusSecurityRequirement0, + }; partial void PrepareCreateManyStatusArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreateManyStatusResponseContent( id: ref id, importPk: ref importPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateManyStatusSecurityRequirements, + operationName: "CreateManyStatusAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/imports/{importPk}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -64,7 +89,7 @@ partial void ProcessCreateManyStatusResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Delete2.g.cs index d7f24c3..57a01b9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Delete2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessDelete2Response( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.DeleteAllTasks.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.DeleteAllTasks.g.cs index 5505880..2b03b37 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.DeleteAllTasks.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.DeleteAllTasks.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteAllTasksSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteAllTasksSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteAllTasksSecurityRequirement0, + }; partial void PrepareDeleteAllTasksArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessDeleteAllTasksResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteAllTasksSecurityRequirements, + operationName: "DeleteAllTasksAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteAllTasksResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs index 9c541d1..a0d5268 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs index 0dbff0f..f44480c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref global::LabelStudio.ApiTasksListFields? fields, @@ -91,6 +110,12 @@ partial void ProcessList2ResponseContent( selectedItems: ref selectedItems, view: ref view); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/tasks/", baseUri: HttpClient.BaseAddress); @@ -106,7 +131,7 @@ partial void ProcessList2ResponseContent( .AddOptionalParameter("review", review?.ToString().ToLowerInvariant()) .AddOptionalParameter("selectedItems", selectedItems) .AddOptionalParameter("view", view?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -116,7 +141,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs index 6f30729..63e71c4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.Update2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Tasks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Update2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Update2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Update2SecurityRequirement0, + }; partial void PrepareUpdate2Arguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessUpdate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Update2SecurityRequirements, + operationName: "Update2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs index 827ecee..e5902e5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Tasks2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Tasks2Client : global::LabelStudio.ITasks2Client, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.ApiTasksAgreementRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.ApiTasksAgreementRetrieve.g.cs index f2736ac..1d8524b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.ApiTasksAgreementRetrieve.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.ApiTasksAgreementRetrieve.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiTasksAgreementRetrieveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiTasksAgreementRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiTasksAgreementRetrieveSecurityRequirement0, + }; partial void PrepareApiTasksAgreementRetrieveArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -33,9 +52,15 @@ partial void ProcessApiTasksAgreementRetrieveResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiTasksAgreementRetrieveSecurityRequirements, + operationName: "ApiTasksAgreementRetrieveAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/tasks/{id}/agreement/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessApiTasksAgreementRetrieveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs index 95f7978..944d80a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Assign.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AssignSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AssignSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AssignSecurityRequirement0, + }; partial void PrepareAssignArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessAssignResponseContent( taskPk: ref taskPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AssignSecurityRequirements, + operationName: "AssignAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/{taskPk}/assignees", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -69,7 +94,7 @@ partial void ProcessAssignResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs index 651f4fb..9359cc9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.BulkAssign.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_BulkAssignSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_BulkAssignSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_BulkAssignSecurityRequirement0, + }; partial void PrepareBulkAssignArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessBulkAssignResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_BulkAssignSecurityRequirements, + operationName: "BulkAssignAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/assignees", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessBulkAssignResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Delete.g.cs index 210ca2a..f1cfcfe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -54,13 +73,19 @@ partial void ProcessDeleteResponse( type: ref type, users: ref users); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/{taskPk}/assignees", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("type", type?.ToValueString()) .AddOptionalParameter("users", users) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -70,7 +95,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs index 5e78347..6ed8b3c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -49,9 +68,15 @@ partial void ProcessListResponseContent( id: ref id, taskPk: ref taskPk); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/{taskPk}/assignees", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -61,7 +86,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs index 072a75d..30e943b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TasksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -57,9 +76,15 @@ partial void ProcessUpdateResponseContent( taskPk: ref taskPk, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/projects/{id}/tasks/{taskPk}/assignees", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -69,7 +94,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs index 7a53432..47c5189 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TasksClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class TasksClient : global::LabelStudio.ITasksClient, glob /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs index 7dafc83..f2d6744 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Blacklist.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TokensClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_BlacklistSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_BlacklistSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_BlacklistSecurityRequirement0, + }; partial void PrepareBlacklistArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LSAPITokenBlacklistRequest request); @@ -41,9 +60,15 @@ partial void ProcessBlacklistResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_BlacklistSecurityRequirements, + operationName: "BlacklistAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/token/blacklist/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessBlacklistResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs index a259089..12ae41b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TokensClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareCreateRequest( @@ -33,9 +52,15 @@ partial void ProcessCreateResponseContent( PrepareCreateArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/token/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -45,7 +70,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs index 8e0e8c7..76c59ad 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TokensClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/token/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs index 600f668..08d626c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Refresh.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TokensClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RefreshSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RefreshSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RefreshSecurityRequirement0, + }; partial void PrepareRefreshArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.TokenRefreshRequest request); @@ -41,9 +60,15 @@ partial void ProcessRefreshResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RefreshSecurityRequirements, + operationName: "RefreshAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/token/refresh/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessRefreshResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs index 72ca56d..f66a22e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.Rotate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class TokensClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RotateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RotateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RotateSecurityRequirement0, + }; partial void PrepareRotateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.LSAPITokenRotateRequest request); @@ -41,9 +60,15 @@ partial void ProcessRotateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RotateSecurityRequirements, + operationName: "RotateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/token/rotate/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessRotateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs index 112b0a5..494d3dc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.TokensClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class TokensClient : global::LabelStudio.ITokensClient, gl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs index 018e5d9..d938d8f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiUsersCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/users/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Delete.g.cs index 78fea58..dda71b1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -34,9 +53,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/users/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -46,7 +71,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs index c11b112..7e41106 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/users/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs index ac4528b..8bdf8c9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetCurrentUser.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetCurrentUserSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetCurrentUserSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetCurrentUserSecurityRequirement0, + }; partial void PrepareGetCurrentUserArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetCurrentUserRequest( @@ -39,9 +58,15 @@ partial void ProcessGetCurrentUserResponseContent( PrepareGetCurrentUserArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetCurrentUserSecurityRequirements, + operationName: "GetCurrentUserAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -51,7 +76,7 @@ partial void ProcessGetCurrentUserResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs index 8f82b34..54e3189 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetHotkeys.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetHotkeysSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetHotkeysSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetHotkeysSecurityRequirement0, + }; partial void PrepareGetHotkeysArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetHotkeysRequest( @@ -33,9 +52,15 @@ partial void ProcessGetHotkeysResponseContent( PrepareGetHotkeysArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetHotkeysSecurityRequirements, + operationName: "GetHotkeysAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user/hotkeys/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessGetHotkeysResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs index aae3625..5665060 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.GetToken.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetTokenSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetTokenSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetTokenSecurityRequirement0, + }; partial void PrepareGetTokenArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetTokenRequest( @@ -33,9 +52,15 @@ partial void ProcessGetTokenResponseContent( PrepareGetTokenArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTokenSecurityRequirements, + operationName: "GetTokenAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user/token", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessGetTokenResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs index f26028e..3aac987 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? ordering); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/users/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs index 436c26b..dce143d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.ResetToken.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ResetTokenSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ResetTokenSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ResetTokenSecurityRequirement0, + }; partial void PrepareResetTokenArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareResetTokenRequest( @@ -33,9 +52,15 @@ partial void ProcessResetTokenResponseContent( PrepareResetTokenArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ResetTokenSecurityRequirements, + operationName: "ResetTokenAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user/reset-token/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -45,7 +70,7 @@ partial void ProcessResetTokenResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs index c538276..171ff93 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -47,9 +66,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/users/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -59,7 +84,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs index 370a817..a511629 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateCurrentUserSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateCurrentUserSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateCurrentUserSecurityRequirement0, + }; partial void PrepareUpdateCurrentUserArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.PatchedLseUserSerializerUpdateRequest request); @@ -47,9 +66,15 @@ partial void ProcessUpdateCurrentUserResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateCurrentUserSecurityRequirements, + operationName: "UpdateCurrentUserAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -59,7 +84,7 @@ partial void ProcessUpdateCurrentUserResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs index d299d75..0c714a6 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateHotkeys.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateHotkeysSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateHotkeysSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateHotkeysSecurityRequirement0, + }; partial void PrepareUpdateHotkeysArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.PatchedHotkeysRequest request); @@ -41,9 +60,15 @@ partial void ProcessUpdateHotkeysResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateHotkeysSecurityRequirements, + operationName: "UpdateHotkeysAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user/hotkeys/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -53,7 +78,7 @@ partial void ProcessUpdateHotkeysResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs index 3759bbe..a73af1b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Whoami.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class UsersClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_WhoamiSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_WhoamiSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_WhoamiSecurityRequirement0, + }; partial void PrepareWhoamiArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareWhoamiRequest( @@ -33,9 +52,15 @@ partial void ProcessWhoamiResponseContent( PrepareWhoamiArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_WhoamiSecurityRequirements, + operationName: "WhoamiAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/current-user/whoami", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +70,7 @@ partial void ProcessWhoamiResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs index 3e8197c..6c6567a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class UsersClient : global::LabelStudio.IUsersClient, glob /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs index 86f760d..370e9eb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.Get.g.cs @@ -5,6 +5,34 @@ namespace LabelStudio { public partial class VersionsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement1 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + s_GetSecurityRequirement1, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient); partial void PrepareGetRequest( @@ -33,9 +61,15 @@ partial void ProcessGetResponseContent( PrepareGetArguments( httpClient: HttpClient); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/version/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -45,7 +79,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs index 7010c88..27a0e71 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.VersionsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class VersionsClient : global::LabelStudio.IVersionsClient /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs index 66de991..13f88c1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ApiDmViewsCreateRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreate2ResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/views/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Delete.g.cs index 154515e..49a0ce2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -33,9 +52,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dm/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -45,7 +70,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.DeleteAll.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.DeleteAll.g.cs index 56cc8e7..6a32257 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.DeleteAll.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.DeleteAll.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteAllSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteAllSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteAllSecurityRequirement0, + }; partial void PrepareDeleteAllArguments( global::System.Net.Http.HttpClient httpClient, ref int project); @@ -33,12 +52,18 @@ partial void ProcessDeleteAllResponse( httpClient: HttpClient, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteAllSecurityRequirements, + operationName: "DeleteAllAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/views/reset/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("project", project.ToString()!) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -48,7 +73,7 @@ partial void ProcessDeleteAllResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs index 5a0ecaa..bc7e5b8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref string id); @@ -38,9 +57,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dm/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -50,7 +75,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs index 0a1109a..c403ec8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref int? project); @@ -38,12 +57,18 @@ partial void ProcessList2ResponseContent( httpClient: HttpClient, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/views/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project?.ToString()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs index f54e2f6..8a95423 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref string id, @@ -46,9 +65,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/dm/views/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -58,7 +83,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs index 90a4b31..c4909f1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.UpdateOrder.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class ViewsClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateOrderSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateOrderSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateOrderSecurityRequirement0, + }; partial void PrepareUpdateOrderArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.ViewOrderRequest request); @@ -36,9 +55,15 @@ partial void ProcessUpdateOrderResponse( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateOrderSecurityRequirements, + operationName: "UpdateOrderAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/dm/views/order/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -48,7 +73,7 @@ partial void ProcessUpdateOrderResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs index a90fb76..9c34aee 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ViewsClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class ViewsClient : global::LabelStudio.IViewsClient, glob /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs index de7d8b9..9b231d5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.WebhookRequest request); @@ -41,9 +60,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/webhooks/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -53,7 +78,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Delete.g.cs index 8fca263..c9ba841 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -32,9 +51,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/webhooks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -44,7 +69,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs index a3e7f80..efe898e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -37,9 +56,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/webhooks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -49,7 +74,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs index 7342195..f426029 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Info.g.cs @@ -5,6 +5,34 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_InfoSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_InfoSecurityRequirement1 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_InfoSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_InfoSecurityRequirement0, + s_InfoSecurityRequirement1, + }; partial void PrepareInfoArguments( global::System.Net.Http.HttpClient httpClient, ref bool? organizationOnly); @@ -38,12 +66,18 @@ partial void ProcessInfoResponseContent( httpClient: HttpClient, organizationOnly: ref organizationOnly); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_InfoSecurityRequirements, + operationName: "InfoAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/webhooks/info/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("organization-only", organizationOnly?.ToString().ToLowerInvariant()) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +87,7 @@ partial void ProcessInfoResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs index 681cc44..f91c896 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref string? project); @@ -38,12 +57,18 @@ partial void ProcessListResponseContent( httpClient: HttpClient, project: ref project); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/webhooks/", baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("project", project) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -53,7 +78,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs index cb9678a..e62428b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Webhooks2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -45,9 +64,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/webhooks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -57,7 +82,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs index 6c1faf4..ef675ed 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Webhooks2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Webhooks2Client : global::LabelStudio.IWebhooks2Clie /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs index 6785498..376192a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.ApiWebhooksUpdate.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WebhooksClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiWebhooksUpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ApiWebhooksUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiWebhooksUpdateSecurityRequirement0, + }; partial void PrepareApiWebhooksUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -45,9 +64,15 @@ partial void ProcessApiWebhooksUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiWebhooksUpdateSecurityRequirements, + operationName: "ApiWebhooksUpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/webhooks/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, @@ -57,7 +82,7 @@ partial void ProcessApiWebhooksUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs index f7d639e..67ca9f9 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WebhooksClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class WebhooksClient : global::LabelStudio.IWebhooksClient /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs index bb7680f..4c9a040 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Create.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Workspaces2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_CreateSecurityRequirement0, + }; partial void PrepareCreateArguments( global::System.Net.Http.HttpClient httpClient, global::LabelStudio.WorkspaceRequest request); @@ -47,9 +66,15 @@ partial void ProcessCreateResponseContent( httpClient: HttpClient, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateSecurityRequirements, + operationName: "CreateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/workspaces/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessCreateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Delete.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Delete.g.cs index f25f22d..be3ea6a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Delete.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Delete.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Workspaces2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_DeleteSecurityRequirement0, + }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -39,9 +58,15 @@ partial void ProcessDeleteResponse( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteSecurityRequirements, + operationName: "DeleteAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +76,7 @@ partial void ProcessDeleteResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs index 30642be..898339f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Get.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Workspaces2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_GetSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_GetSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_GetSecurityRequirement0, + }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetSecurityRequirements, + operationName: "GetAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessGetResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs index e704562..eee977b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.List.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Workspaces2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ListSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_ListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ListSecurityRequirement0, + }; partial void PrepareListArguments( global::System.Net.Http.HttpClient httpClient, ref bool? includeAllWorkspaces, @@ -59,6 +78,12 @@ partial void ProcessListResponseContent( isPersonal: ref isPersonal, ordering: ref ordering); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListSecurityRequirements, + operationName: "ListAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: "/api/workspaces/", baseUri: HttpClient.BaseAddress); @@ -67,7 +92,7 @@ partial void ProcessListResponseContent( .AddOptionalParameter("is_archived", isArchived?.ToString().ToLowerInvariant()) .AddOptionalParameter("is_personal", isPersonal?.ToString().ToLowerInvariant()) .AddOptionalParameter("ordering", ordering) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -77,7 +102,7 @@ partial void ProcessListResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs index c2e0755..5d68c87 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.Update.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class Workspaces2Client { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_UpdateSecurityRequirement0, + }; partial void PrepareUpdateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessUpdateResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateSecurityRequirements, + operationName: "UpdateAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), @@ -64,7 +89,7 @@ partial void ProcessUpdateResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs index 031f25b..e4dd939 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Workspaces2Client.g.cs @@ -12,7 +12,7 @@ public sealed partial class Workspaces2Client : global::LabelStudio.IWorkspaces2 /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs index 842169f..8c80a42 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Add.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_AddSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_AddSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_AddSecurityRequirement0, + }; partial void PrepareAddArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -47,9 +66,15 @@ partial void ProcessAddResponse( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_AddSecurityRequirements, + operationName: "AddAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/projects/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -59,7 +84,7 @@ partial void ProcessAddResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs index 8859437..a8292bc 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Create2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Create2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Create2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Create2SecurityRequirement0, + }; partial void PrepareCreate2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessCreate2ResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Create2SecurityRequirements, + operationName: "Create2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessCreate2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete2.g.cs index d25d728..e1d1afa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete2.g.cs @@ -5,13 +5,34 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete2SecurityRequirement0, + }; partial void PrepareDelete2Arguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref int? userId); partial void PrepareDelete2Request( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + int? userId); partial void ProcessDelete2Response( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -24,24 +45,36 @@ partial void ProcessDelete2Response( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a specific member by ID from a workspace. This endpoint expects an object like `{"user_id": 123}`. + /// Remove a specific member by ID from a workspace. Pass the member ID via the `user_id` query parameter. For backward compatibility, a JSON body with `user_id` (or `user`) is still accepted. ///
/// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task Delete2Async( int id, + int? userId = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareDelete2Arguments( httpClient: HttpClient, - id: ref id); + id: ref id, + userId: ref userId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete2SecurityRequirements, + operationName: "Delete2Async"); var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("user_id", userId?.ToString()) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +84,7 @@ partial void ProcessDelete2Response( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -73,7 +106,8 @@ partial void ProcessDelete2Response( PrepareDelete2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + userId: userId); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs index f8bfe55..1a55257 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Delete3.g.cs @@ -5,13 +5,42 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_Delete3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_Delete3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_Delete3SecurityRequirement0, + }; partial void PrepareDelete3Arguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref bool? all, + ref string? excluded, + ref int id, + ref string? ids, + ref string? included, + ref string? search); partial void PrepareDelete3Request( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + bool? all, + string? excluded, + int id, + string? ids, + string? included, + string? search); partial void ProcessDelete3Response( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -29,24 +58,52 @@ partial void ProcessDelete3ResponseContent( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Unassign workspace members in bulk. Allows the same request body as bulk assign. + /// Unassign workspace members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional paginated-list filters (`search`, `ids`). For backward compatibility, a JSON body with bulk fields is still accepted. /// + /// + /// /// + /// + /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task Delete3Async( int id, + bool? all = default, + string? excluded = default, + string? ids = default, + string? included = default, + string? search = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareDelete3Arguments( httpClient: HttpClient, - id: ref id); + all: ref all, + excluded: ref excluded, + id: ref id, + ids: ref ids, + included: ref included, + search: ref search); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_Delete3SecurityRequirements, + operationName: "Delete3Async"); var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/bulk/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("all", all?.ToString().ToLowerInvariant()) + .AddOptionalParameter("excluded", excluded) + .AddOptionalParameter("ids", ids) + .AddOptionalParameter("included", included) + .AddOptionalParameter("search", search) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -56,7 +113,7 @@ partial void ProcessDelete3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -78,7 +135,12 @@ partial void ProcessDelete3ResponseContent( PrepareDelete3Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + all: all, + excluded: excluded, + id: id, + ids: ids, + included: included, + search: search); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs index 13775e9..ede15be 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List2.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List2SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List2SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List2SecurityRequirement0, + }; partial void PrepareList2Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessList2ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List2SecurityRequirements, + operationName: "List2Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessList2ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs index 4a4e328..57e0209 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List3.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List3SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List3SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List3SecurityRequirement0, + }; partial void PrepareList3Arguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -64,6 +83,12 @@ partial void ProcessList3ResponseContent( pageSize: ref pageSize, search: ref search); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List3SecurityRequirements, + operationName: "List3Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/paginated/", baseUri: HttpClient.BaseAddress); @@ -72,7 +97,7 @@ partial void ProcessList3ResponseContent( .AddOptionalParameter("page", page?.ToString()) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("search", search) - ; + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -82,7 +107,7 @@ partial void ProcessList3ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs index 48f39eb..52c5c8d 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.List4.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_List4SecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_List4SecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_List4SecurityRequirement0, + }; partial void PrepareList4Arguments( global::System.Net.Http.HttpClient httpClient, ref int id); @@ -44,9 +63,15 @@ partial void ProcessList4ResponseContent( httpClient: HttpClient, id: ref id); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_List4SecurityRequirements, + operationName: "List4Async"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/projects/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -56,7 +81,7 @@ partial void ProcessList4ResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs index 54673aa..d3ee57f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Post.g.cs @@ -5,6 +5,25 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_PostSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_PostSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_PostSecurityRequirement0, + }; partial void PreparePostArguments( global::System.Net.Http.HttpClient httpClient, ref int id, @@ -52,9 +71,15 @@ partial void ProcessPostResponseContent( id: ref id, request: request); + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PostSecurityRequirements, + operationName: "PostAsync"); + var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/memberships/bulk/", - baseUri: HttpClient.BaseAddress); + baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, @@ -64,7 +89,7 @@ partial void ProcessPostResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Remove.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Remove.g.cs index ba04623..ee45527 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Remove.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.Remove.g.cs @@ -5,13 +5,34 @@ namespace LabelStudio { public partial class WorkspacesClient { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_RemoveSecurityRequirement0 = + new global::LabelStudio.EndPointSecurityRequirement + { + Authorizations = new global::LabelStudio.EndPointAuthorizationRequirement[] + { new global::LabelStudio.EndPointAuthorizationRequirement + { + Type = "Http", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::LabelStudio.EndPointSecurityRequirement[] s_RemoveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_RemoveSecurityRequirement0, + }; partial void PrepareRemoveArguments( global::System.Net.Http.HttpClient httpClient, - ref int id); + ref int id, + ref int? project); partial void PrepareRemoveRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); + int id, + int? project); partial void ProcessRemoveResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -24,24 +45,36 @@ partial void ProcessRemoveResponse( /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
/// </p>
/// </Card>
- /// Remove a project from a specific workspace. + /// Remove a project from a specific workspace. Pass the project ID via the `project` query parameter. For backward compatibility, a JSON body with `project` is still accepted. /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task RemoveAsync( int id, + int? project = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareRemoveArguments( httpClient: HttpClient, - id: ref id); + id: ref id, + project: ref project); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RemoveSecurityRequirements, + operationName: "RemoveAsync"); var __pathBuilder = new global::LabelStudio.PathBuilder( path: $"/api/workspaces/{id}/projects/", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("project", project?.ToString()) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, @@ -51,7 +84,7 @@ partial void ProcessRemoveResponse( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif - foreach (var __authorization in Authorizations) + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || __authorization.Type == "OAuth2") @@ -73,7 +106,8 @@ partial void ProcessRemoveResponse( PrepareRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id); + id: id, + project: project); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs index d85d1ff..15b0958 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.WorkspacesClient.g.cs @@ -12,7 +12,7 @@ public sealed partial class WorkspacesClient : global::LabelStudio.IWorkspacesCl /// /// Label Studio /// - public const string DefaultBaseUrl = "http://localhost:8000"; + public const string DefaultBaseUrl = "http://localhost:8000/"; private bool _disposeHttpClient = true; diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 2938024..4dbaa1a 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -906,6 +906,9 @@ paths: summary: response value: completed_by: 1 + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' + created_username: '' ground_truth: false id: 1 lead_time: 10 @@ -926,7 +929,9 @@ paths: width: 50 x: 20 y: 30 + state: CREATED task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' updated_by: 1 was_cancelled: false schema: @@ -1028,6 +1033,9 @@ paths: summary: response value: completed_by: 1 + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' + created_username: '' ground_truth: false id: 1 lead_time: 10 @@ -1048,7 +1056,9 @@ paths: width: 50 x: 20 y: 30 + state: CREATED task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' updated_by: 1 was_cancelled: false schema: @@ -1126,7 +1136,9 @@ paths: allow_data_credentials: true allow_invite_people: true allow_invite_project_experts: true + allow_nda: false allow_organization_webhooks: true + allow_reviewing: true allow_sso: false allow_storage_proxy: true automax_enabled: true @@ -1135,6 +1147,7 @@ paths: disable_members_page: false disable_project_imports: false early_adopter: false + email_configured: true embed_domains: - domain: http://localhost:3000 - domain: https://example.com @@ -1195,7 +1208,9 @@ paths: allow_data_credentials: true allow_invite_people: true allow_invite_project_experts: true + allow_nda: true allow_organization_webhooks: true + allow_reviewing: true allow_sso: true allow_storage_proxy: true automax_enabled: true @@ -1204,6 +1219,7 @@ paths: disable_members_page: false disable_project_imports: false early_adopter: true + email_configured: true embed_domains: - domain: http://localhost:3000 - domain: https://example.com @@ -1264,7 +1280,9 @@ paths: allow_data_credentials: false allow_invite_people: true allow_invite_project_experts: true + allow_nda: false allow_organization_webhooks: false + allow_reviewing: true allow_sso: true allow_storage_proxy: true automax_enabled: true @@ -1273,6 +1291,7 @@ paths: disable_members_page: false disable_project_imports: false early_adopter: true + email_configured: true embed_domains: - domain: http://localhost:3000 - domain: https://purple-zoos-flash.loca.lt @@ -6670,7 +6689,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Delete multiple member tags from the organization in bulk. Allows the same request body as bulk create. + Delete multiple member tags from the organization in bulk. Pass tag IDs via the `ids` query parameter (comma-separated or repeated). For backward compatibility, a JSON body with `ids` is still accepted. operationId: api_organizations_member_tags_bulk_destroy parameters: - description: A unique integer value identifying this organization. @@ -6679,10 +6698,30 @@ paths: required: true schema: type: integer + - description: Tag IDs to delete. Accepts comma-separated values (e.g., `1,2`) or repeated params. + in: query + name: ids + schema: + type: string responses: '200': content: application/json: + examples: + LegacySDKUsage(supported): + description: |- + Backward-compatible legacy call with DELETE body: ls.organizations.member_tags.bulk.delete( + id=123, + request_options={'additional_body_parameters': {'ids': [1, 2]}}, + ) + summary: Legacy SDK usage (supported) + SDKUsage: + description: |- + SDK call example using DELETE query params: ls.organizations.member_tags.bulk.delete( + id=123, + ids=[1, 2], + ) + summary: SDK usage schema: properties: deleted: @@ -7087,6 +7126,14 @@ paths: name: role schema: type: string + - description: Member visibility scope. `accessible` (default) limits Managers to members in their projects/workspaces. `all` returns all organization members. Only affects Manager role. + in: query + name: scope + schema: + enum: + - accessible + - all + type: string - description: A search term. in: query name: search @@ -7658,26 +7705,30 @@ paths: Response: summary: response value: - - - id: 1 - model_version: yolo-v8 - result: - - from_name: bboxes - image_rotation: 0 - original_height: 1080 - original_width: 1920 - to_name: image - type: rectanglelabels - value: - height: 60 - rotation: 0 - values: - rectanglelabels: - - Person - width: 50 - x: 20 - y: 30 - score: 0.95 - task: 1 + - created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' + id: 1 + model_version: yolo-v8 + project: 1 + result: + - from_name: bboxes + image_rotation: 0 + original_height: 1080 + original_width: 1920 + to_name: image + type: rectanglelabels + value: + height: 60 + rotation: 0 + values: + rectanglelabels: + - Person + width: 50 + x: 20 + y: 30 + score: 0.95 + task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' schema: items: $ref: '#/components/schemas/Prediction' @@ -7760,8 +7811,11 @@ paths: Response: summary: response value: + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' id: 1 model_version: yolo-v8 + project: 1 result: - from_name: bboxes image_rotation: 0 @@ -7780,6 +7834,7 @@ paths: y: 30 score: 0.95 task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' schema: $ref: '#/components/schemas/Prediction' description: Created prediction @@ -7833,8 +7888,11 @@ paths: Response: summary: response value: + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' id: 1 model_version: yolo-v8 + project: 1 result: - from_name: bboxes image_rotation: 0 @@ -7853,6 +7911,7 @@ paths: y: 30 score: 0.95 task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' schema: $ref: '#/components/schemas/Prediction' description: Prediction details @@ -7940,8 +7999,11 @@ paths: Response: summary: response value: + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' id: 1 model_version: yolo-v8 + project: 1 result: - from_name: bboxes image_rotation: 0 @@ -7960,6 +8022,7 @@ paths: y: 30 score: 0.95 task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' schema: $ref: '#/components/schemas/Prediction' description: Updated prediction @@ -8047,8 +8110,11 @@ paths: Response: summary: response value: + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' id: 1 model_version: yolo-v8 + project: 1 result: - from_name: bboxes image_rotation: 0 @@ -8067,6 +8133,7 @@ paths: y: 30 score: 0.95 task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' schema: $ref: '#/components/schemas/Prediction' description: Updated prediction @@ -9043,6 +9110,159 @@ paths: - metrics - custom x-fern-sdk-method-name: check_function + /api/projects/{id}/custom-function: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get the custom metric function code for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + operationId: api_projects_custom_function_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + properties: + code: + type: string + status: + enum: + - NotDeployed + - Active + - Pending + - Failed + - NotFound + - Error + type: string + required: + - code + - status + type: object + description: Function code and deployment status + security: + - Token: [] + summary: ✨ Get custom metric code + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - metrics + - custom + x-fern-sdk-method-name: get_function + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create or update the custom metric function for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting. + operationId: api_projects_custom_function_create + parameters: + - in: path + name: id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFunctionCodeRequestRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CustomFunctionCodeRequestRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CustomFunctionCodeRequestRequest' + required: true + responses: + '200': + description: Updated successfully + '202': + description: Accepted, activation pending + '204': + description: No changes applied + '500': + description: Error updating function + security: + - Token: [] + summary: ✨ Deploy custom metric function + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - metrics + - custom + x-fern-sdk-method-name: deploy_function + /api/projects/{id}/custom-function-logs: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get execution logs for the custom metric function. The server routes to the active cloud provider based on the CUSTOM_METRIC_PROVIDER setting. + operationId: api_projects_custom_function_logs_retrieve + parameters: + - description: End date for log filtering in format %Y-%m-%d + in: query + name: end_date + schema: + type: string + - in: path + name: id + required: true + schema: + type: integer + - description: Limit the number of logs to return + in: query + name: limit + schema: + default: 100 + type: integer + - description: Start date for log filtering in format %Y-%m-%d + in: query + name: start_date + schema: + type: string + responses: + '200': + content: + application/json: + schema: + title: Function logs + type: object + description: List of function execution logs + security: + - Token: [] + summary: ✨ Get custom metric function logs + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - metrics + - custom + x-fern-sdk-method-name: get_function_logs /api/projects/{id}/dashboard: get: deprecated: true @@ -9544,6 +9764,106 @@ paths: x-fern-sdk-group-name: - files x-fern-sdk-method-name: list + /api/projects/{id}/gcp-custom-function: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get the GCP Cloud Function code for the custom metric configured for this project. + operationId: api_projects_gcp_custom_function_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + properties: + code: + type: string + status: + enum: + - NotDeployed + - Active + - Pending + - Failed + - NotFound + - Error + type: string + required: + - code + - status + type: object + description: Cloud Function code and deployment status + security: + - Token: [] + summary: ✨ Get GCP custom metric code + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - metrics + - custom + x-fern-sdk-method-name: get_gcp_function + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create or update the GCP Cloud Function used for custom metrics in this project. + operationId: api_projects_gcp_custom_function_create + parameters: + - in: path + name: id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GCPCustomFunctionUpdateRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GCPCustomFunctionUpdateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GCPCustomFunctionUpdateRequest' + required: true + responses: + '200': + description: Updated successfully + '202': + description: Accepted, activation pending + '204': + description: No changes applied + '500': + description: Error updating function + security: + - Token: [] + summary: ✨ Update GCP custom metric Cloud Function + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - metrics + - custom + x-fern-sdk-method-name: update_gcp_function /api/projects/{id}/import: post: description: "\n Import data as labeling tasks in bulk using this API endpoint. You can use this API endpoint to import multiple tasks.\n One POST request is limited at 250K tasks and 200 MB.\n\n **Note:** Imported data is verified against a project *label_config* and must\n include all variables that were used in the *label_config*. For example,\n if the label configuration has a *$text* variable, then each item in a data object\n must include a \"text\" field.\n
\n\n ## Async Import Behavior\n
\n\n **For non-Community editions, this endpoint processes imports asynchronously.**\n \n - The POST request **can fail** for invalid parameters, malformed request body, or other request-level validation errors.\n - However, **data validation errors** that occur during import processing are handled asynchronously and will not cause the POST request to fail.\n - Upon successful request validation, a response is returned: `{\"import\": }`\n - Use the returned `import_id` to poll the GET `/api/projects/{project_id}/imports/{import_id}` endpoint to check the import status and see any data validation errors.\n - Data-level errors and import failures will only be visible in the GET request response.\n\n For Community edition, imports are processed synchronously and return task counts immediately.\n
\n\n ## POST requests\n
\n\n There are three possible ways to import tasks with this endpoint:\n\n ### 1. **POST with data**\n Send JSON tasks as POST data. Only JSON is supported for POSTing files directly.\n Update this example to specify your authorization token and Label Studio instance host, then run the following from\n the command line.\n\n ```bash\n curl -H 'Content-Type: application/json' -H 'Authorization: Token abc123' \\\n -X POST 'http://localhost:8000/api/projects/1/import' --data '[{\"text\": \"Some text 1\"}, {\"text\": \"Some text 2\"}]'\n ```\n\n ### 2. **POST with files**\n Send tasks as files. You can attach multiple files with different names.\n\n - **JSON**: text files in JavaScript object notation format\n - **CSV**: text files with tables in Comma Separated Values format\n - **TSV**: text files with tables in Tab Separated Value format\n - **TXT**: simple text files are similar to CSV with one column and no header, supported for projects with one source only\n\n Update this example to specify your authorization token, Label Studio instance host, and file name and path,\n then run the following from the command line:\n\n ```bash\n curl -H 'Authorization: Token abc123' \\\n -X POST 'http://localhost:8000/api/projects/1/import' -F 'file=@path/to/my_file.csv'\n ```\n\n ### 3. **POST with URL**\n You can also provide a URL to a file with labeling tasks. Supported file formats are the same as in option 2.\n\n ```bash\n curl -H 'Content-Type: application/json' -H 'Authorization: Token abc123' \\\n -X POST 'http://localhost:8000/api/projects/1/import' \\\n --data '[{\"url\": \"http://example.com/test1.csv\"}, {\"url\": \"http://example.com/test2.csv\"}]'\n ```\n\n
\n " @@ -9759,7 +10079,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Remove a member from a specific project. + Remove a member from a specific project. Pass the member ID via the `user` query parameter. For backward compatibility, a JSON body with `user` is still accepted. operationId: api_projects_members_destroy parameters: - in: path @@ -9767,6 +10087,11 @@ paths: required: true schema: type: integer + - description: User ID to remove from the project. Optional for backward compatibility with DELETE body. + in: query + name: user + schema: + type: integer responses: '204': description: Member removed @@ -9874,72 +10199,103 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Unassign project members in bulk. Allows the same request body as bulk assign. + Unassign project members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional member filters (`search`, `role`, `tags`, `last_activity__gte`, `last_activity__lte`). For backward compatibility, a JSON body with bulk fields is still accepted. operationId: api_projects_members_bulk_destroy parameters: - - in: path - name: id - required: true - schema: - type: integer - - description: Filter by last activity (ISO 8601 formatted date). Only when all=True. - in: query - name: last_activity__gte - schema: - type: string - - description: Filter by last activity upper bound (ISO 8601 formatted date). Only when all=True. - in: query - name: last_activity__lte - schema: - type: string - - description: Filter by role, project roles take precedence over organization roles. Only when all=True. (comma-separated values) + - description: Apply unassignment to all currently matched project members. in: query - name: role - schema: - type: string - - description: Search term for filtering members by name, email, or username. Only when all=True. - in: query - name: search + name: all schema: - type: string - - description: Multiple values may be separated by commas. (comma-separated values) + type: boolean + - description: Comma-separated list of user IDs to keep assigned when `all=true`. in: query - name: tags + name: excluded schema: type: string - responses: - '200': - content: - application/json: - schema: - properties: - unassignments: - type: integer - type: object - description: '' - security: - - Token: [] - summary: ✨ Bulk unassign project members - tags: - - Projects - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - members - - bulk - x-fern-sdk-method-name: delete - post: - description: |- - - Label Studio Enterprise badge -

- This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) -

-
- Assign project members in bulk. - operationId: api_projects_members_bulk_create - parameters: + - in: path + name: id + required: true + schema: + type: integer + - description: Comma-separated list of user IDs to unassign when `all=false`. + in: query + name: included + schema: + type: string + - description: Filter by last activity (ISO 8601 formatted date). Only when all=True. + in: query + name: last_activity__gte + schema: + type: string + - description: Filter by last activity upper bound (ISO 8601 formatted date). Only when all=True. + in: query + name: last_activity__lte + schema: + type: string + - description: Filter by role, project roles take precedence over organization roles. Only when all=True. (comma-separated values) + in: query + name: role + schema: + type: string + - description: Search term for filtering members by name, email, or username. Only when all=True. + in: query + name: search + schema: + type: string + - description: Multiple values may be separated by commas. (comma-separated values) + in: query + name: tags + schema: + type: string + responses: + '200': + content: + application/json: + examples: + LegacySDKUsage(supported): + description: |- + Backward-compatible legacy call with DELETE body: ls.projects.members.bulk.delete( + id=123, + request_options={'additional_body_parameters': {'all': False, 'included': [456, 789]}}, + ) + summary: Legacy SDK usage (supported) + SDKUsage: + description: |- + SDK call example using DELETE query params: ls.projects.members.bulk.delete( + id=123, + all_=False, + included=[456, 789], + ) + summary: SDK usage + schema: + properties: + unassignments: + type: integer + type: object + description: '' + security: + - Token: [] + summary: ✨ Bulk unassign project members + tags: + - Projects + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - members + - bulk + x-fern-sdk-method-name: delete + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Assign project members in bulk. + operationId: api_projects_members_bulk_create + parameters: - in: path name: id required: true @@ -10430,8 +10786,8 @@ paths: summary: payload format for annotator_params value: annotator_params: - 123: 1.0 - 456: 0.75 + '123': 1.0 + '456': 0.75 use_kappa: true schema: $ref: '#/components/schemas/LseProjectParamsRequest' @@ -13708,6 +14064,20 @@ paths: Response: summary: response value: + acs_url: http://localhost:8000/saml/saml-token-example/acs + domain: example.com + idp_provider: null + login_url: http://localhost:8000/saml/saml-token-example/login + logout_url: http://localhost:8000/saml/saml-token-example/logout + manual_role_management: null + mapping_email: Email + mapping_first_name: FirstName + mapping_groups: Groups + mapping_last_name: LastName + metadata_url: '' + metadata_xml: '' + metadata_xml_url: null + nameid_format: urn:oasis:names:tc:SAML:2.0:nameid-format:transient projects_groups: - group: groups_test project_id: 42 @@ -13715,6 +14085,7 @@ paths: roles_groups: - - Administrator - groups_test + token: saml-token-example workspaces_groups: - - Default workspace - groups_test @@ -13808,7 +14179,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Validate a SAML metadata URL by fetching it and checking whether it returns valid XML, without saving any settings. + Validate a SAML metadata URL by fetching it and checking for valid XML, without saving. operationId: api_saml_settings_validate_metadata_url_create requestBody: content: @@ -16014,6 +16385,272 @@ paths: - export_storage - gcs x-fern-sdk-method-name: sync + /api/storages/export/gcs_sa: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get a list of all GCS export storage connections set up with SA Impersonation. + operationId: api_storages_export_gcs_sa_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - description: Project ID + in: query + name: project + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GCSSAExportStorage' + type: array + description: '' + security: + - Token: [] + summary: ✨ Get all GCS SA export storages + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: list + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create a GCS export storage connection with SA Impersonation to store annotations. + operationId: api_storages_export_gcs_sa_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorage' + description: '' + security: + - Token: [] + summary: ✨ Create GCS export storage with SA Impersonation + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: create + /api/storages/export/gcs_sa/validate: + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Validate a specific GCS export storage connection set up with SA Impersonation. + operationId: api_storages_export_gcs_sa_validate_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GCSSAExportStorageRequest' + required: true + responses: + '200': + description: Validation successful + security: + - Token: [] + summary: ✨ Validate GCS SA export storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: validate + /api/storages/export/gcs_sa/{id}: + delete: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Delete a specific GCS export storage connection set up with SA Impersonation. + operationId: api_storages_export_gcs_sa_destroy + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '204': + description: No response body + security: + - Token: [] + summary: ✨ Delete GCS SA export storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: delete + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get a specific GCS export storage connection set up with SA Impersonation. + operationId: api_storages_export_gcs_sa_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorage' + description: '' + security: + - Token: [] + summary: ✨ Get GCS SA export storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: get + patch: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Update a specific GCS export storage connection set up with SA Impersonation. + operationId: api_storages_export_gcs_sa_partial_update + parameters: + - in: path + name: id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedGCSSAExportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PatchedGCSSAExportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedGCSSAExportStorageRequest' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorage' + description: '' + security: + - Token: [] + summary: ✨ Update GCS SA export storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: update + /api/storages/export/gcs_sa/{id}/sync: + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Sync annotations to a GCS SA export storage. + operationId: api_storages_export_gcs_sa_sync_create + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAExportStorage' + description: '' + security: + - Token: [] + summary: ✨ Sync GCS SA export storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - export_storage + - gcs_sa + x-fern-sdk-method-name: sync /api/storages/export/gcswif: get: description: |- @@ -17771,6 +18408,272 @@ paths: - import_storage - gcs x-fern-sdk-method-name: sync + /api/storages/gcs_sa/: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get list of all GCS import storage connections set up with Service Account Impersonation. + operationId: api_storages_gcs_sa_list + parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + - description: Project ID + in: query + name: project + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GCSSAImportStorage' + type: array + description: '' + security: + - Token: [] + summary: ✨ Get all GCS SA import storages + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: list + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create GCS import storage with Service Account Impersonation. + operationId: api_storages_gcs_sa_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorage' + description: '' + security: + - Token: [] + summary: ✨ Create GCS import storage with SA Impersonation + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: create + /api/storages/gcs_sa/validate: + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Validate a specific GCS import storage connection set up with SA Impersonation. + operationId: api_storages_gcs_sa_validate_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GCSSAImportStorageRequest' + required: true + responses: + '200': + description: Validation successful + security: + - Token: [] + summary: ✨ Validate GCS SA import storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: validate + /api/storages/gcs_sa/{id}: + delete: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Delete a specific GCS import storage connection set up with SA Impersonation. + operationId: api_storages_gcs_sa_destroy + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '204': + description: No response body + security: + - Token: [] + summary: ✨ Delete GCS SA import storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: delete + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get a specific GCS import storage connection set up with SA Impersonation. + operationId: api_storages_gcs_sa_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorage' + description: '' + security: + - Token: [] + summary: ✨ Get GCS SA import storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: get + patch: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Update a specific GCS import storage connection set up with SA Impersonation. + operationId: api_storages_gcs_sa_partial_update + parameters: + - in: path + name: id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedGCSSAImportStorageRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PatchedGCSSAImportStorageRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedGCSSAImportStorageRequest' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorage' + description: '' + security: + - Token: [] + summary: ✨ Update GCS SA import storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: update + /api/storages/gcs_sa/{id}/sync: + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Sync tasks from a GCS import storage connection set up with SA Impersonation. + operationId: api_storages_gcs_sa_sync_create + parameters: + - in: path + name: id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GCSSAImportStorage' + description: '' + security: + - Token: [] + summary: ✨ Sync GCS SA import storage + tags: + - 'Storage: GCS SA' + x-fern-audiences: + - public + x-fern-sdk-group-name: + - import_storage + - gcs_sa + x-fern-sdk-method-name: sync /api/storages/gcswif/: get: description: |- @@ -19528,30 +20431,35 @@ paths: Response: summary: response value: - - - completed_by: 1 - ground_truth: false - id: 1 - lead_time: 10 - project: 1 - result: - - from_name: bboxes - image_rotation: 0 - original_height: 1080 - original_width: 1920 - to_name: image - type: rectanglelabels - value: - height: 60 - rotation: 0 - values: - rectanglelabels: - - Person - width: 50 - x: 20 - y: 30 - task: 1 - updated_by: 1 - was_cancelled: false + - completed_by: 1 + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' + created_username: '' + ground_truth: false + id: 1 + lead_time: 10 + project: 1 + result: + - from_name: bboxes + image_rotation: 0 + original_height: 1080 + original_width: 1920 + to_name: image + type: rectanglelabels + value: + height: 60 + rotation: 0 + values: + rectanglelabels: + - Person + width: 50 + x: 20 + y: 30 + state: CREATED + task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' + updated_by: 1 + was_cancelled: false schema: items: $ref: '#/components/schemas/Annotation' @@ -19654,6 +20562,9 @@ paths: summary: response value: completed_by: 1 + created_ago: '' + created_at: '2024-06-18T23:45:46.048490Z' + created_username: '' ground_truth: false id: 1 lead_time: 10 @@ -19674,7 +20585,9 @@ paths: width: 50 x: 20 y: 30 + state: CREATED task: 1 + updated_at: '2024-06-18T23:45:46.048538Z' updated_by: 1 was_cancelled: false schema: @@ -20750,7 +21663,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Remove a specific member by ID from a workspace. This endpoint expects an object like `{"user_id": 123}`. + Remove a specific member by ID from a workspace. Pass the member ID via the `user_id` query parameter. For backward compatibility, a JSON body with `user_id` (or `user`) is still accepted. operationId: api_workspaces_memberships_destroy parameters: - in: path @@ -20758,6 +21671,11 @@ paths: required: true schema: type: integer + - description: User ID to remove from the workspace. + in: query + name: user_id + schema: + type: integer responses: '204': description: No response body @@ -20863,18 +21781,59 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Unassign workspace members in bulk. Allows the same request body as bulk assign. + Unassign workspace members in bulk. Pass selector fields via query parameters (`all`, `included`, `excluded`) and optional paginated-list filters (`search`, `ids`). For backward compatibility, a JSON body with bulk fields is still accepted. operationId: api_workspaces_memberships_bulk_destroy parameters: + - description: Apply unassignment to all currently matched workspace members. + in: query + name: all + schema: + type: boolean + - description: Comma-separated list of user IDs to keep assigned when `all=true`. + in: query + name: excluded + schema: + type: string - in: path name: id required: true schema: type: integer + - description: Comma-separated list of user IDs to filter matched members. + in: query + name: ids + schema: + type: string + - description: Comma-separated list of user IDs to unassign when `all=false`. + in: query + name: included + schema: + type: string + - description: Search term for filtering matched members by name or email. + in: query + name: search + schema: + type: string responses: '200': content: application/json: + examples: + LegacySDKUsage(supported): + description: |- + Backward-compatible legacy call with DELETE body: ls.workspaces.members.bulk.delete( + id=123, + request_options={'additional_body_parameters': {'all': False, 'included': [456, 789]}}, + ) + summary: Legacy SDK usage (supported) + SDKUsage: + description: |- + SDK call example using DELETE query params: ls.workspaces.members.bulk.delete( + id=123, + all_=False, + included=[456, 789], + ) + summary: SDK usage schema: properties: unassignments: @@ -21014,7 +21973,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Remove a project from a specific workspace. + Remove a project from a specific workspace. Pass the project ID via the `project` query parameter. For backward compatibility, a JSON body with `project` is still accepted. operationId: api_workspaces_projects_destroy parameters: - in: path @@ -21022,6 +21981,11 @@ paths: required: true schema: type: integer + - description: Project ID to remove from the workspace. + in: query + name: project + schema: + type: integer responses: '204': description: Project removed @@ -24001,6 +24965,14 @@ components: - limit - reached type: object + CustomFunctionCodeRequestRequest: + properties: + code: + minLength: 1 + type: string + required: + - code + type: object DashboardTypeEnum: description: |- * `overview` - Overview @@ -24711,6 +25683,10 @@ components: organization: description: A unique integer value identifying this organization. type: integer + react_code_settings: + description: 'ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]}' + nullable: true + title: ReactCode settings read_only_quick_view_enabled_at: description: Set to current time to prevent creating or editing annotations in quick view. format: date-time @@ -25190,6 +26166,24 @@ components: enum: - only - exclude + GCPCustomFunctionUpdateRequest: + description: Serializer for updating GCP Cloud Function custom metric. + properties: + code: + description: The Python code for the custom metric function. + minLength: 1 + type: string + project: + description: The GCP project ID. Uses default if not provided. + nullable: true + type: string + region: + description: The GCP region for the Cloud Function. Uses default if not provided. + nullable: true + type: string + required: + - code + type: object GCSDatasetStorage: properties: bucket: @@ -25460,7 +26454,356 @@ components: nullable: true type: string type: - default: gcs + default: gcs + readOnly: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - created_at + - id + - project + - type + type: object + GCSImportStorage: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + created_at: + description: Creation time + format: date-time + readOnly: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + google_application_credentials: + description: The content of GOOGLE_APPLICATION_CREDENTIALS json file + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + id: + readOnly: true + type: integer + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + presign: + default: true + type: boolean + presign_ttl: + description: Presigned URLs TTL (in minutes) + maximum: 32767 + minimum: 0 + type: integer + project: + description: A unique integer value identifying this project. + type: integer + recursive_scan: + description: Perform recursive scan over the bucket content + nullable: true + type: boolean + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + type: + default: gcs + readOnly: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - created_at + - id + - project + - type + type: object + GCSSAExportStorage: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + can_delete_objects: + description: Deletion from storage enabled + nullable: true + type: boolean + created_at: + description: Creation time + format: date-time + readOnly: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + id: + readOnly: true + type: integer + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + project: + description: A unique integer value identifying this project. + type: integer + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + type: + default: gcs_sa + readOnly: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - created_at + - id + - project + - type + type: object + GCSSAExportStorageRequest: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + can_delete_objects: + description: Deletion from storage enabled + nullable: true + type: boolean + description: + description: Cloud storage description + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + project: + description: A unique integer value identifying this project. + type: integer + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + required: + - project + type: object + GCSSAImportStorage: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + created_at: + description: Creation time + format: date-time + readOnly: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + id: + readOnly: true + type: integer + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + presign: + default: true + type: boolean + presign_ttl: + description: Presigned URLs TTL (in minutes) + maximum: 32767 + minimum: 0 + type: integer + project: + description: A unique integer value identifying this project. + type: integer + recursive_scan: + description: Perform recursive scan over the bucket content + nullable: true + type: boolean + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + type: + default: gcs_sa readOnly: true type: string use_blob_urls: @@ -25472,32 +26815,20 @@ components: - project - type type: object - GCSImportStorage: + GCSSAImportStorageRequest: properties: bucket: description: GCS bucket name nullable: true type: string - created_at: - description: Creation time - format: date-time - readOnly: true - type: string description: description: Cloud storage description nullable: true type: string - google_application_credentials: - description: The content of GOOGLE_APPLICATION_CREDENTIALS json file - nullable: true - type: string google_project_id: description: Google project ID nullable: true type: string - id: - readOnly: true - type: integer last_sync: description: Last sync finished time format: date-time @@ -25545,6 +26876,10 @@ components: synchronizable: default: true type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string title: description: Cloud storage title maxLength: 256 @@ -25554,18 +26889,11 @@ components: description: Traceback report for the last failed sync nullable: true type: string - type: - default: gcs - readOnly: true - type: string use_blob_urls: description: Interpret objects as BLOBs and generate URLs type: boolean required: - - created_at - - id - project - - type type: object GCSWIFExportStorage: properties: @@ -26005,7 +27333,9 @@ components: minimum: -2147483648 type: integer data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object file_upload: description: Uploaded file used as data source for this task nullable: true @@ -26709,8 +28039,10 @@ components: properties: choice_keys: description: Flat keys in "___SEP___" format for this dimension. + items: + type: string readOnly: true - type: string + type: array choices: description: Sorted list of choices observed from config and/or created labels. items: @@ -26731,8 +28063,10 @@ components: properties: choice_keys: description: All project choice keys in stable order, joined with "___PIPE___" when passed as query param. + items: + type: string readOnly: true - type: string + type: array dimensions: items: $ref: '#/components/schemas/LabelDistributionStructureDimension' @@ -27255,6 +28589,9 @@ components: id: readOnly: true type: integer + react_code_settings: + readOnly: true + type: string title: readOnly: true type: string @@ -27267,6 +28604,7 @@ components: - custom_scripts_enabled - email_notification_settings - id + - react_code_settings - title - token type: object @@ -27315,6 +28653,9 @@ components: role: readOnly: true type: string + role_source: + readOnly: true + type: string tags: items: $ref: '#/components/schemas/SimpleOrganizationMemberTag' @@ -27329,6 +28670,7 @@ components: - id - organization - role + - role_source - tags - user type: object @@ -28074,8 +29416,14 @@ components: LseProjectParams: properties: annotator_params: - description: 'user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]}' + additionalProperties: + format: double + maximum: 1 + minimum: 0 + type: number + description: 'User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1].' nullable: true + type: object use_kappa: description: If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement type: boolean @@ -28083,8 +29431,14 @@ components: LseProjectParamsRequest: properties: annotator_params: - description: 'user ID and user weight in score calculation. Format {user_id[int]: weight[Float[0..1]]}' + additionalProperties: + format: double + maximum: 1 + minimum: 0 + type: number + description: 'User ID and user weight in score calculation. Format {user_id: weight} with weight in [0..1].' nullable: true + type: object use_kappa: description: If categorical variables are used in labeling (e.g. choices), Cohen's Kappa statistic is computed to measure inter-rater reliability instead of basic agreement type: boolean @@ -29264,7 +30618,9 @@ components: readOnly: true type: string data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object draft_exists: type: boolean drafts: @@ -29573,7 +30929,9 @@ components: minimum: -2147483648 type: integer data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object file_upload: description: Uploaded file used as data source for this task nullable: true @@ -29651,7 +31009,9 @@ components: readOnly: true type: string data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object draft_exists: type: boolean drafts: @@ -29824,7 +31184,9 @@ components: readOnly: true type: string data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object draft_exists: type: boolean drafts: @@ -32294,6 +33656,10 @@ components: organization: description: A unique integer value identifying this organization. type: integer + react_code_settings: + description: 'ReactCode tag security settings. Structure: {"mode": "disabled"|"src_only"|"everything", "allowed_origins": ["https://..."], "allowed_permissions": ["camera", ...]}' + nullable: true + title: ReactCode settings read_only_quick_view_enabled_at: description: Set to current time to prevent creating or editing annotations in quick view. format: date-time @@ -32434,6 +33800,154 @@ components: description: Interpret objects as BLOBs and generate URLs type: boolean type: object + PatchedGCSSAExportStorageRequest: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + can_delete_objects: + description: Deletion from storage enabled + nullable: true + type: boolean + description: + description: Cloud storage description + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + project: + description: A unique integer value identifying this project. + type: integer + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + type: object + PatchedGCSSAImportStorageRequest: + properties: + bucket: + description: GCS bucket name + nullable: true + type: string + description: + description: Cloud storage description + nullable: true + type: string + google_project_id: + description: Google project ID + nullable: true + type: string + last_sync: + description: Last sync finished time + format: date-time + nullable: true + type: string + last_sync_count: + description: Count of tasks synced last time + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + last_sync_job: + description: Last sync job ID + maxLength: 256 + nullable: true + type: string + meta: + description: Meta and debug information about storage processes + nullable: true + prefix: + description: GCS bucket prefix + nullable: true + type: string + presign: + default: true + type: boolean + presign_ttl: + description: Presigned URLs TTL (in minutes) + maximum: 32767 + minimum: 0 + type: integer + project: + description: A unique integer value identifying this project. + type: integer + recursive_scan: + description: Perform recursive scan over the bucket content + nullable: true + type: boolean + regex_filter: + description: Cloud storage regex for filtering objects + nullable: true + type: string + status: + $ref: '#/components/schemas/StatusC5aEnum' + synchronizable: + default: true + type: boolean + target_service_account_email: + description: Service account email to impersonate for GCS access + nullable: true + type: string + title: + description: Cloud storage title + maxLength: 256 + nullable: true + type: string + traceback: + description: Traceback report for the last failed sync + nullable: true + type: string + use_blob_urls: + description: Interpret objects as BLOBs and generate URLs + type: boolean + type: object PatchedGCSWIFExportStorageRequest: properties: bucket: @@ -32707,6 +34221,10 @@ components: description: Public Verification Key and Public Verification Algorithms configuration nullable: true writeOnly: true + react_code_settings: + description: ReactCode settings + nullable: true + writeOnly: true title: description: Organization name minLength: 1 @@ -33154,7 +34672,9 @@ components: format: date-time type: string data: + additionalProperties: {} description: User imported or uploaded data for a task. Data is formatted according to the project label config. You can find examples of data for your project on the Import page in the Label Studio Data Manager UI. + type: object draft_exists: type: boolean ground_truth: @@ -35472,6 +36992,7 @@ components: that are needed for IdP configuration. properties: acs_url: + nullable: true readOnly: true type: string domain: @@ -35486,11 +37007,17 @@ components: title: Identity provider type: string login_url: + nullable: true readOnly: true type: string logout_url: + nullable: true readOnly: true type: string + manual_role_management: + description: Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + nullable: true + type: boolean mapping_email: description: 'Mapping attributes: user email from SAML request' maxLength: 1024 @@ -35524,23 +37051,37 @@ components: description: Metadata XML file type: string metadata_xml_url: + nullable: true readOnly: true type: string nameid_format: readOnly: true type: string projects_groups: - description: Projects to groups mapping + description: Projects to Groups Mapping. List of objects with project_id, group, role. + items: + $ref: '#/components/schemas/ProjectGroup' nullable: true + type: array roles_groups: - description: Roles to groups mapping + description: Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. + items: + items: + type: string + type: array nullable: true + type: array token: maxLength: 256 type: string workspaces_groups: - description: Workspaces to groups mapping + description: Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. + items: + items: + type: string + type: array nullable: true + type: array required: - acs_url - login_url @@ -35562,6 +37103,10 @@ components: nullable: true title: Identity provider type: string + manual_role_management: + description: Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + nullable: true + type: boolean mapping_email: description: 'Mapping attributes: user email from SAML request' maxLength: 1024 @@ -35628,6 +37173,10 @@ components: nullable: true title: Identity provider type: string + manual_role_management: + description: Allow manually assigning organization roles instead of IdP-managed groups. None = use billing default. + nullable: true + type: boolean mapping_email: description: 'Mapping attributes: user email from SAML request' maxLength: 1024 @@ -35695,14 +37244,27 @@ components: ScimSettings: properties: projects_groups: - description: Projects to groups mapping + description: Projects to Groups Mapping. List of objects with project_id, group, role. + items: + $ref: '#/components/schemas/ProjectGroup' nullable: true + type: array roles_groups: - description: Roles to groups mapping + description: Organization Roles to Groups Mapping. List of [role_name, group_name] pairs. + items: + items: + type: string + type: array nullable: true + type: array workspaces_groups: - description: Workspaces to groups mapping + description: Workspaces to Groups Mapping. List of [workspace_title, group_name] pairs. + items: + items: + type: string + type: array nullable: true + type: array type: object ScimSettingsUpdate: properties: