/*
* InfluxDB OSS API Service
*
* The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
*
* OpenAPI spec version: 2.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using OpenAPIDateConverter = InfluxDB.Client.Api.Client.OpenAPIDateConverter;
namespace InfluxDB.Client.Api.Domain
{
///
/// HTTPNotificationEndpoint
///
[DataContract]
public partial class HTTPNotificationEndpoint : NotificationEndpoint, IEquatable
{
///
/// Defines Method
///
[JsonConverter(typeof(StringEnumConverter))]
public enum MethodEnum
{
///
/// Enum POST for value: POST
///
[EnumMember(Value = "POST")] POST = 1,
///
/// Enum GET for value: GET
///
[EnumMember(Value = "GET")] GET = 2,
///
/// Enum PUT for value: PUT
///
[EnumMember(Value = "PUT")] PUT = 3
}
///
/// Gets or Sets Method
///
[DataMember(Name = "method", EmitDefaultValue = false)]
public MethodEnum Method { get; set; }
///
/// Defines AuthMethod
///
[JsonConverter(typeof(StringEnumConverter))]
public enum AuthMethodEnum
{
///
/// Enum None for value: none
///
[EnumMember(Value = "none")] None = 1,
///
/// Enum Basic for value: basic
///
[EnumMember(Value = "basic")] Basic = 2,
///
/// Enum Bearer for value: bearer
///
[EnumMember(Value = "bearer")] Bearer = 3
}
///
/// Gets or Sets AuthMethod
///
[DataMember(Name = "authMethod", EmitDefaultValue = false)]
public AuthMethodEnum AuthMethod { get; set; }
///
/// Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected HTTPNotificationEndpoint()
{
}
///
/// Initializes a new instance of the class.
///
/// url (required).
/// username.
/// password.
/// token.
/// method (required).
/// authMethod (required).
/// contentTemplate.
/// Customized headers..
public HTTPNotificationEndpoint(string url = default, string username = default, string password = default,
string token = default, MethodEnum method = default, AuthMethodEnum authMethod = default,
string contentTemplate = default, Dictionary headers = default, string id = default,
string orgID = default, string userID = default, string description = default, string name = default,
StatusEnum? status = StatusEnum.Active, List