-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathProfile.cs
More file actions
151 lines (137 loc) · 6.12 KB
/
Profile.cs
File metadata and controls
151 lines (137 loc) · 6.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
* Devolutions PEDM API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = Devolutions.Pedm.Client.Client.FileParameter;
using OpenAPIDateConverter = Devolutions.Pedm.Client.Client.OpenAPIDateConverter;
namespace Devolutions.Pedm.Client.Model
{
/// <summary>
/// Profile
/// </summary>
[DataContract(Name = "Profile")]
public partial class Profile : IValidatableObject
{
/// <summary>
/// Gets or Sets DefaultElevationKind
/// </summary>
[DataMember(Name = "DefaultElevationKind", IsRequired = true, EmitDefaultValue = true)]
public ElevationKind DefaultElevationKind { get; set; }
/// <summary>
/// Gets or Sets ElevationMethod
/// </summary>
[DataMember(Name = "ElevationMethod", IsRequired = true, EmitDefaultValue = true)]
public ElevationMethod ElevationMethod { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Profile" /> class.
/// </summary>
[JsonConstructorAttribute]
protected Profile() { }
/// <summary>
/// Initializes a new instance of the <see cref="Profile" /> class.
/// </summary>
/// <param name="defaultElevationKind">defaultElevationKind (required).</param>
/// <param name="elevationMethod">elevationMethod (required).</param>
/// <param name="elevationSettings">elevationSettings (required).</param>
/// <param name="id">id (required).</param>
/// <param name="name">name (required).</param>
/// <param name="promptSecureDesktop">promptSecureDesktop (required).</param>
/// <param name="targetMustBeSigned">targetMustBeSigned (required).</param>
public Profile(ElevationKind defaultElevationKind = default(ElevationKind), ElevationMethod elevationMethod = default(ElevationMethod), ElevationConfigurations elevationSettings = default(ElevationConfigurations), Guid id = default(Guid), string name = default(string), bool promptSecureDesktop = default(bool), bool targetMustBeSigned = default(bool))
{
this.DefaultElevationKind = defaultElevationKind;
this.ElevationMethod = elevationMethod;
// to ensure "elevationSettings" is required (not null)
if (elevationSettings == null)
{
throw new ArgumentNullException("elevationSettings is a required property for Profile and cannot be null");
}
this.ElevationSettings = elevationSettings;
this.Id = id;
// to ensure "name" is required (not null)
if (name == null)
{
throw new ArgumentNullException("name is a required property for Profile and cannot be null");
}
this.Name = name;
this.PromptSecureDesktop = promptSecureDesktop;
this.TargetMustBeSigned = targetMustBeSigned;
}
/// <summary>
/// Gets or Sets ElevationSettings
/// </summary>
[DataMember(Name = "ElevationSettings", IsRequired = true, EmitDefaultValue = true)]
public ElevationConfigurations ElevationSettings { get; set; }
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "Id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name = "Name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
/// <summary>
/// Gets or Sets PromptSecureDesktop
/// </summary>
[DataMember(Name = "PromptSecureDesktop", IsRequired = true, EmitDefaultValue = true)]
public bool PromptSecureDesktop { get; set; }
/// <summary>
/// Gets or Sets TargetMustBeSigned
/// </summary>
[DataMember(Name = "TargetMustBeSigned", IsRequired = true, EmitDefaultValue = true)]
public bool TargetMustBeSigned { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class Profile {\n");
sb.Append(" DefaultElevationKind: ").Append(DefaultElevationKind).Append("\n");
sb.Append(" ElevationMethod: ").Append(ElevationMethod).Append("\n");
sb.Append(" ElevationSettings: ").Append(ElevationSettings).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" PromptSecureDesktop: ").Append(PromptSecureDesktop).Append("\n");
sb.Append(" TargetMustBeSigned: ").Append(TargetMustBeSigned).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}