1+ /// This code was generated by
2+ /// \ / _ _ _| _ _
3+ /// | (_)\/(_)(_|\/| |(/_ v1.0.0
4+ /// / /
5+
6+ using System ;
7+ using System . Collections . Generic ;
8+ using Twilio . Base ;
9+
10+ namespace Twilio . Rest . Preview . DeployedDevices . Fleet
11+ {
12+
13+ /// <summary>
14+ /// PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you
15+ /// currently do not have developer preview access, please contact [email protected] . 16+ ///
17+ /// Fetch information about a specific Certificate credential in the Fleet.
18+ /// </summary>
19+ public class FetchCertificateOptions : IOptions < CertificateResource >
20+ {
21+ /// <summary>
22+ /// The fleet_sid
23+ /// </summary>
24+ public string PathFleetSid { get ; }
25+ /// <summary>
26+ /// A string that uniquely identifies the Certificate.
27+ /// </summary>
28+ public string PathSid { get ; }
29+
30+ /// <summary>
31+ /// Construct a new FetchCertificateOptions
32+ /// </summary>
33+ ///
34+ /// <param name="pathFleetSid"> The fleet_sid </param>
35+ /// <param name="pathSid"> A string that uniquely identifies the Certificate. </param>
36+ public FetchCertificateOptions ( string pathFleetSid , string pathSid )
37+ {
38+ PathFleetSid = pathFleetSid ;
39+ PathSid = pathSid ;
40+ }
41+
42+ /// <summary>
43+ /// Generate the necessary parameters
44+ /// </summary>
45+ public List < KeyValuePair < string , string > > GetParams ( )
46+ {
47+ var p = new List < KeyValuePair < string , string > > ( ) ;
48+ return p ;
49+ }
50+ }
51+
52+ /// <summary>
53+ /// PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you
54+ /// currently do not have developer preview access, please contact [email protected] . 55+ ///
56+ /// Unregister a specific Certificate credential from the Fleet, effectively disallowing any inbound client connections
57+ /// that are presenting it.
58+ /// </summary>
59+ public class DeleteCertificateOptions : IOptions < CertificateResource >
60+ {
61+ /// <summary>
62+ /// The fleet_sid
63+ /// </summary>
64+ public string PathFleetSid { get ; }
65+ /// <summary>
66+ /// A string that uniquely identifies the Certificate.
67+ /// </summary>
68+ public string PathSid { get ; }
69+
70+ /// <summary>
71+ /// Construct a new DeleteCertificateOptions
72+ /// </summary>
73+ ///
74+ /// <param name="pathFleetSid"> The fleet_sid </param>
75+ /// <param name="pathSid"> A string that uniquely identifies the Certificate. </param>
76+ public DeleteCertificateOptions ( string pathFleetSid , string pathSid )
77+ {
78+ PathFleetSid = pathFleetSid ;
79+ PathSid = pathSid ;
80+ }
81+
82+ /// <summary>
83+ /// Generate the necessary parameters
84+ /// </summary>
85+ public List < KeyValuePair < string , string > > GetParams ( )
86+ {
87+ var p = new List < KeyValuePair < string , string > > ( ) ;
88+ return p ;
89+ }
90+ }
91+
92+ /// <summary>
93+ /// PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you
94+ /// currently do not have developer preview access, please contact [email protected] . 95+ ///
96+ /// Enroll a new Certificate credential to the Fleet, optionally giving it a friendly name and assigning to a Device.
97+ /// </summary>
98+ public class CreateCertificateOptions : IOptions < CertificateResource >
99+ {
100+ /// <summary>
101+ /// The fleet_sid
102+ /// </summary>
103+ public string PathFleetSid { get ; }
104+ /// <summary>
105+ /// The public certificate data.
106+ /// </summary>
107+ public string CertificateData { get ; }
108+ /// <summary>
109+ /// The human readable description for this Certificate.
110+ /// </summary>
111+ public string FriendlyName { get ; set ; }
112+ /// <summary>
113+ /// The unique identifier of a Device to be authenticated.
114+ /// </summary>
115+ public string DeviceSid { get ; set ; }
116+
117+ /// <summary>
118+ /// Construct a new CreateCertificateOptions
119+ /// </summary>
120+ ///
121+ /// <param name="pathFleetSid"> The fleet_sid </param>
122+ /// <param name="certificateData"> The public certificate data. </param>
123+ public CreateCertificateOptions ( string pathFleetSid , string certificateData )
124+ {
125+ PathFleetSid = pathFleetSid ;
126+ CertificateData = certificateData ;
127+ }
128+
129+ /// <summary>
130+ /// Generate the necessary parameters
131+ /// </summary>
132+ public List < KeyValuePair < string , string > > GetParams ( )
133+ {
134+ var p = new List < KeyValuePair < string , string > > ( ) ;
135+ if ( CertificateData != null )
136+ {
137+ p . Add ( new KeyValuePair < string , string > ( "CertificateData" , CertificateData ) ) ;
138+ }
139+
140+ if ( FriendlyName != null )
141+ {
142+ p . Add ( new KeyValuePair < string , string > ( "FriendlyName" , FriendlyName ) ) ;
143+ }
144+
145+ if ( DeviceSid != null )
146+ {
147+ p . Add ( new KeyValuePair < string , string > ( "DeviceSid" , DeviceSid . ToString ( ) ) ) ;
148+ }
149+
150+ return p ;
151+ }
152+ }
153+
154+ /// <summary>
155+ /// PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you
156+ /// currently do not have developer preview access, please contact [email protected] . 157+ ///
158+ /// Retrieve a list of all Certificate credentials belonging to the Fleet.
159+ /// </summary>
160+ public class ReadCertificateOptions : ReadOptions < CertificateResource >
161+ {
162+ /// <summary>
163+ /// The fleet_sid
164+ /// </summary>
165+ public string PathFleetSid { get ; }
166+ /// <summary>
167+ /// Find all Certificates authenticating specified Device.
168+ /// </summary>
169+ public string DeviceSid { get ; set ; }
170+
171+ /// <summary>
172+ /// Construct a new ReadCertificateOptions
173+ /// </summary>
174+ ///
175+ /// <param name="pathFleetSid"> The fleet_sid </param>
176+ public ReadCertificateOptions ( string pathFleetSid )
177+ {
178+ PathFleetSid = pathFleetSid ;
179+ }
180+
181+ /// <summary>
182+ /// Generate the necessary parameters
183+ /// </summary>
184+ public override List < KeyValuePair < string , string > > GetParams ( )
185+ {
186+ var p = new List < KeyValuePair < string , string > > ( ) ;
187+ if ( DeviceSid != null )
188+ {
189+ p . Add ( new KeyValuePair < string , string > ( "DeviceSid" , DeviceSid . ToString ( ) ) ) ;
190+ }
191+
192+ if ( PageSize != null )
193+ {
194+ p . Add ( new KeyValuePair < string , string > ( "PageSize" , PageSize . ToString ( ) ) ) ;
195+ }
196+
197+ return p ;
198+ }
199+ }
200+
201+ /// <summary>
202+ /// PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you
203+ /// currently do not have developer preview access, please contact [email protected] . 204+ ///
205+ /// Update the given properties of a specific Certificate credential in the Fleet, giving it a friendly name or
206+ /// assigning to a Device.
207+ /// </summary>
208+ public class UpdateCertificateOptions : IOptions < CertificateResource >
209+ {
210+ /// <summary>
211+ /// The fleet_sid
212+ /// </summary>
213+ public string PathFleetSid { get ; }
214+ /// <summary>
215+ /// A string that uniquely identifies the Certificate.
216+ /// </summary>
217+ public string PathSid { get ; }
218+ /// <summary>
219+ /// The human readable description for this Certificate.
220+ /// </summary>
221+ public string FriendlyName { get ; set ; }
222+ /// <summary>
223+ /// The unique identifier of a Device to be authenticated.
224+ /// </summary>
225+ public string DeviceSid { get ; set ; }
226+
227+ /// <summary>
228+ /// Construct a new UpdateCertificateOptions
229+ /// </summary>
230+ ///
231+ /// <param name="pathFleetSid"> The fleet_sid </param>
232+ /// <param name="pathSid"> A string that uniquely identifies the Certificate. </param>
233+ public UpdateCertificateOptions ( string pathFleetSid , string pathSid )
234+ {
235+ PathFleetSid = pathFleetSid ;
236+ PathSid = pathSid ;
237+ }
238+
239+ /// <summary>
240+ /// Generate the necessary parameters
241+ /// </summary>
242+ public List < KeyValuePair < string , string > > GetParams ( )
243+ {
244+ var p = new List < KeyValuePair < string , string > > ( ) ;
245+ if ( FriendlyName != null )
246+ {
247+ p . Add ( new KeyValuePair < string , string > ( "FriendlyName" , FriendlyName ) ) ;
248+ }
249+
250+ if ( DeviceSid != null )
251+ {
252+ p . Add ( new KeyValuePair < string , string > ( "DeviceSid" , DeviceSid . ToString ( ) ) ) ;
253+ }
254+
255+ return p ;
256+ }
257+ }
258+
259+ }
0 commit comments