/* * Service Collaborateur API * * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * * OpenAPI spec version: 1.1.2 * Contact: lilian.gayet@apside-groupe.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using RestSharp; using IO.Swagger.ClientCollaborateur; using IO.Swagger.ModelCollaborateur; namespace IO.Swagger.ApiCollaborateur { /// /// Represents a collection of functions to interact with the API endpoints /// public interface IPridodeDessaiApi : IApiAccessor { #region Synchronous Operations /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void MajPE (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse MajPEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajPEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class PridodeDessaiApi : IPridodeDessaiApi { private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// /// public PridodeDessaiApi(String basePath) { this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath }; ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// /// public PridodeDessaiApi() { this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public PridodeDessaiApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; else this.Configuration = configuration; ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; } /// /// Gets the base path of the API client. /// /// The base path public String GetBasePath() { return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); } /// /// Sets the base path of the API client. /// /// The base path [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] public void SetBasePath(String basePath) { // do nothing } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public IO.Swagger.ClientCollaborateur.Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// public IO.Swagger.ClientCollaborateur.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// Gets the default header. /// /// Dictionary of HTTP header [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] public IDictionary DefaultHeader() { return new ReadOnlyDictionary(this.Configuration.DefaultHeader); } /// /// Add default header. /// /// Header field name. /// Header field value. /// [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] public void AddDefaultHeader(string key, string value) { this.Configuration.AddDefaultHeader(key, value); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null) { Maj1PEWithHttpInfo(collabId, body); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("Maj1PE", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null) { await Maj1PEAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("Maj1PE", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null) { Maj1PEPatchWithHttpInfo(collabId, body); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("Maj1PEPatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null) { await Maj1PEPatchAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("Maj1PEPatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void MajPE (Guid? collabId, NouvellePeriodeEssai body = null) { MajPEWithHttpInfo(collabId, body); } /// /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajPE", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null) { await MajPEAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajPE", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null) { MajPEPatchWithHttpInfo(collabId, body); } /// /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse MajPEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajPEPatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null) { await MajPEPatchAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> MajPEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter if (body != null && body.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter } else { localVarPostBody = body; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajPEPatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } } }