|
| 1 | +// <auto-generated> |
| 2 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +// Licensed under the MIT License. See License.txt in the project root for |
| 4 | +// license information. |
| 5 | +// |
| 6 | +// Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | +// Changes may cause incorrect behavior and will be lost if the code is |
| 8 | +// regenerated. |
| 9 | +// </auto-generated> |
| 10 | + |
| 11 | +namespace Microsoft.Azure.Management.DeviceProvisioningServices |
| 12 | +{ |
| 13 | + using Microsoft.Rest; |
| 14 | + using Microsoft.Rest.Azure; |
| 15 | + using Models; |
| 16 | + using System.Collections; |
| 17 | + using System.Collections.Generic; |
| 18 | + using System.Threading; |
| 19 | + using System.Threading.Tasks; |
| 20 | + |
| 21 | + /// <summary> |
| 22 | + /// DpsCertificateOperations operations. |
| 23 | + /// </summary> |
| 24 | + public partial interface IDpsCertificateOperations |
| 25 | + { |
| 26 | + /// <summary> |
| 27 | + /// Get the certificate from the provisioning service. |
| 28 | + /// </summary> |
| 29 | + /// <param name='certificateName'> |
| 30 | + /// Name of the certificate to retrieve. |
| 31 | + /// </param> |
| 32 | + /// <param name='resourceGroupName'> |
| 33 | + /// Resource group identifier. |
| 34 | + /// </param> |
| 35 | + /// <param name='provisioningServiceName'> |
| 36 | + /// Name of the provisioning service the certificate is associated |
| 37 | + /// with. |
| 38 | + /// </param> |
| 39 | + /// <param name='ifMatch'> |
| 40 | + /// ETag of the certificate. |
| 41 | + /// </param> |
| 42 | + /// <param name='customHeaders'> |
| 43 | + /// The headers that will be added to request. |
| 44 | + /// </param> |
| 45 | + /// <param name='cancellationToken'> |
| 46 | + /// The cancellation token. |
| 47 | + /// </param> |
| 48 | + /// <exception cref="ErrorDetailsException"> |
| 49 | + /// Thrown when the operation returned an invalid status code |
| 50 | + /// </exception> |
| 51 | + /// <exception cref="Microsoft.Rest.SerializationException"> |
| 52 | + /// Thrown when unable to deserialize the response |
| 53 | + /// </exception> |
| 54 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 55 | + /// Thrown when a required parameter is null |
| 56 | + /// </exception> |
| 57 | + Task<AzureOperationResponse<CertificateResponse>> GetWithHttpMessagesAsync(string certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 58 | + /// <summary> |
| 59 | + /// Upload the certificate to the provisioning service. |
| 60 | + /// </summary> |
| 61 | + /// <remarks> |
| 62 | + /// Add new certificate or update an existing certificate. |
| 63 | + /// </remarks> |
| 64 | + /// <param name='resourceGroupName'> |
| 65 | + /// Resource group identifier. |
| 66 | + /// </param> |
| 67 | + /// <param name='provisioningServiceName'> |
| 68 | + /// The name of the provisioning service. |
| 69 | + /// </param> |
| 70 | + /// <param name='certificateName'> |
| 71 | + /// The name of the certificate create or update. |
| 72 | + /// </param> |
| 73 | + /// <param name='ifMatch'> |
| 74 | + /// ETag of the certificate. This is required to update an existing |
| 75 | + /// certificate, and ignored while creating a brand new certificate. |
| 76 | + /// </param> |
| 77 | + /// <param name='certificate'> |
| 78 | + /// Base-64 representation of the X509 leaf certificate .cer file or |
| 79 | + /// just .pem file content. |
| 80 | + /// </param> |
| 81 | + /// <param name='customHeaders'> |
| 82 | + /// The headers that will be added to request. |
| 83 | + /// </param> |
| 84 | + /// <param name='cancellationToken'> |
| 85 | + /// The cancellation token. |
| 86 | + /// </param> |
| 87 | + /// <exception cref="ErrorDetailsException"> |
| 88 | + /// Thrown when the operation returned an invalid status code |
| 89 | + /// </exception> |
| 90 | + /// <exception cref="Microsoft.Rest.SerializationException"> |
| 91 | + /// Thrown when unable to deserialize the response |
| 92 | + /// </exception> |
| 93 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 94 | + /// Thrown when a required parameter is null |
| 95 | + /// </exception> |
| 96 | + Task<AzureOperationResponse<CertificateResponse>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch = default(string), string certificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 97 | + /// <summary> |
| 98 | + /// Delete the Provisioning Service Certificate. |
| 99 | + /// </summary> |
| 100 | + /// <remarks> |
| 101 | + /// Deletes the specified certificate associated with the Provisioning |
| 102 | + /// Service |
| 103 | + /// </remarks> |
| 104 | + /// <param name='resourceGroupName'> |
| 105 | + /// Resource group identifier. |
| 106 | + /// </param> |
| 107 | + /// <param name='ifMatch'> |
| 108 | + /// ETag of the certificate |
| 109 | + /// </param> |
| 110 | + /// <param name='provisioningServiceName'> |
| 111 | + /// The name of the provisioning service. |
| 112 | + /// </param> |
| 113 | + /// <param name='certificateName'> |
| 114 | + /// This is a mandatory field, and is the logical name of the |
| 115 | + /// certificate that the provisioning service will access by. |
| 116 | + /// </param> |
| 117 | + /// <param name='certificatename'> |
| 118 | + /// This is optional, and it is the Common Name of the certificate. |
| 119 | + /// </param> |
| 120 | + /// <param name='certificaterawBytes'> |
| 121 | + /// Raw data within the certificate. |
| 122 | + /// </param> |
| 123 | + /// <param name='certificateisVerified'> |
| 124 | + /// Indicates if certificate has been verified by owner of the private |
| 125 | + /// key. |
| 126 | + /// </param> |
| 127 | + /// <param name='certificatepurpose'> |
| 128 | + /// A description that mentions the purpose of the certificate. |
| 129 | + /// Possible values include: 'clientAuthentication', |
| 130 | + /// 'serverAuthentication' |
| 131 | + /// </param> |
| 132 | + /// <param name='certificatecreated'> |
| 133 | + /// Time the certificate is created. |
| 134 | + /// </param> |
| 135 | + /// <param name='certificatelastUpdated'> |
| 136 | + /// Time the certificate is last updated. |
| 137 | + /// </param> |
| 138 | + /// <param name='certificatehasPrivateKey'> |
| 139 | + /// Indicates if the certificate contains a private key. |
| 140 | + /// </param> |
| 141 | + /// <param name='certificatenonce'> |
| 142 | + /// Random number generated to indicate Proof of Possession. |
| 143 | + /// </param> |
| 144 | + /// <param name='customHeaders'> |
| 145 | + /// The headers that will be added to request. |
| 146 | + /// </param> |
| 147 | + /// <param name='cancellationToken'> |
| 148 | + /// The cancellation token. |
| 149 | + /// </param> |
| 150 | + /// <exception cref="ErrorDetailsException"> |
| 151 | + /// Thrown when the operation returned an invalid status code |
| 152 | + /// </exception> |
| 153 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 154 | + /// Thrown when a required parameter is null |
| 155 | + /// </exception> |
| 156 | + Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string ifMatch, string provisioningServiceName, string certificateName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 157 | + /// <summary> |
| 158 | + /// Get all the certificates tied to the provisioning service. |
| 159 | + /// </summary> |
| 160 | + /// <param name='resourceGroupName'> |
| 161 | + /// Name of resource group. |
| 162 | + /// </param> |
| 163 | + /// <param name='provisioningServiceName'> |
| 164 | + /// Name of provisioning service to retrieve certificates for. |
| 165 | + /// </param> |
| 166 | + /// <param name='customHeaders'> |
| 167 | + /// The headers that will be added to request. |
| 168 | + /// </param> |
| 169 | + /// <param name='cancellationToken'> |
| 170 | + /// The cancellation token. |
| 171 | + /// </param> |
| 172 | + /// <exception cref="ErrorDetailsException"> |
| 173 | + /// Thrown when the operation returned an invalid status code |
| 174 | + /// </exception> |
| 175 | + /// <exception cref="Microsoft.Rest.SerializationException"> |
| 176 | + /// Thrown when unable to deserialize the response |
| 177 | + /// </exception> |
| 178 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 179 | + /// Thrown when a required parameter is null |
| 180 | + /// </exception> |
| 181 | + Task<AzureOperationResponse<CertificateListDescription>> ListWithHttpMessagesAsync(string resourceGroupName, string provisioningServiceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 182 | + /// <summary> |
| 183 | + /// Generate verification code for Proof of Possession. |
| 184 | + /// </summary> |
| 185 | + /// <param name='certificateName'> |
| 186 | + /// The mandatory logical name of the certificate, that the |
| 187 | + /// provisioning service uses to access. |
| 188 | + /// </param> |
| 189 | + /// <param name='ifMatch'> |
| 190 | + /// ETag of the certificate. This is required to update an existing |
| 191 | + /// certificate, and ignored while creating a brand new certificate. |
| 192 | + /// </param> |
| 193 | + /// <param name='resourceGroupName'> |
| 194 | + /// name of resource group. |
| 195 | + /// </param> |
| 196 | + /// <param name='provisioningServiceName'> |
| 197 | + /// Name of provisioning service. |
| 198 | + /// </param> |
| 199 | + /// <param name='certificatename'> |
| 200 | + /// Common Name for the certificate. |
| 201 | + /// </param> |
| 202 | + /// <param name='certificaterawBytes'> |
| 203 | + /// Raw data of certificate. |
| 204 | + /// </param> |
| 205 | + /// <param name='certificateisVerified'> |
| 206 | + /// Indicates if the certificate has been verified by owner of the |
| 207 | + /// private key. |
| 208 | + /// </param> |
| 209 | + /// <param name='certificatepurpose'> |
| 210 | + /// Description mentioning the purpose of the certificate. Possible |
| 211 | + /// values include: 'clientAuthentication', 'serverAuthentication' |
| 212 | + /// </param> |
| 213 | + /// <param name='certificatecreated'> |
| 214 | + /// Certificate creation time. |
| 215 | + /// </param> |
| 216 | + /// <param name='certificatelastUpdated'> |
| 217 | + /// Certificate last updated time. |
| 218 | + /// </param> |
| 219 | + /// <param name='certificatehasPrivateKey'> |
| 220 | + /// Indicates if the certificate contains private key. |
| 221 | + /// </param> |
| 222 | + /// <param name='certificatenonce'> |
| 223 | + /// Random number generated to indicate Proof of Possession. |
| 224 | + /// </param> |
| 225 | + /// <param name='customHeaders'> |
| 226 | + /// The headers that will be added to request. |
| 227 | + /// </param> |
| 228 | + /// <param name='cancellationToken'> |
| 229 | + /// The cancellation token. |
| 230 | + /// </param> |
| 231 | + /// <exception cref="ErrorDetailsException"> |
| 232 | + /// Thrown when the operation returned an invalid status code |
| 233 | + /// </exception> |
| 234 | + /// <exception cref="Microsoft.Rest.SerializationException"> |
| 235 | + /// Thrown when unable to deserialize the response |
| 236 | + /// </exception> |
| 237 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 238 | + /// Thrown when a required parameter is null |
| 239 | + /// </exception> |
| 240 | + Task<AzureOperationResponse<VerificationCodeResponse>> GenerateVerificationCodeWithHttpMessagesAsync(string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 241 | + /// <summary> |
| 242 | + /// Verify certificate's private key possession. |
| 243 | + /// </summary> |
| 244 | + /// <remarks> |
| 245 | + /// Verifies the certificate's private key possession by providing the |
| 246 | + /// leaf cert issued by the verifying pre uploaded certificate. |
| 247 | + /// </remarks> |
| 248 | + /// <param name='certificateName'> |
| 249 | + /// The mandatory logical name of the certificate, that the |
| 250 | + /// provisioning service uses to access. |
| 251 | + /// </param> |
| 252 | + /// <param name='ifMatch'> |
| 253 | + /// ETag of the certificate. |
| 254 | + /// </param> |
| 255 | + /// <param name='resourceGroupName'> |
| 256 | + /// Resource group name. |
| 257 | + /// </param> |
| 258 | + /// <param name='provisioningServiceName'> |
| 259 | + /// Provisioning service name. |
| 260 | + /// </param> |
| 261 | + /// <param name='certificatename'> |
| 262 | + /// Common Name for the certificate. |
| 263 | + /// </param> |
| 264 | + /// <param name='certificaterawBytes'> |
| 265 | + /// Raw data of certificate. |
| 266 | + /// </param> |
| 267 | + /// <param name='certificateisVerified'> |
| 268 | + /// Indicates if the certificate has been verified by owner of the |
| 269 | + /// private key. |
| 270 | + /// </param> |
| 271 | + /// <param name='certificatepurpose'> |
| 272 | + /// Describe the purpose of the certificate. Possible values include: |
| 273 | + /// 'clientAuthentication', 'serverAuthentication' |
| 274 | + /// </param> |
| 275 | + /// <param name='certificatecreated'> |
| 276 | + /// Certificate creation time. |
| 277 | + /// </param> |
| 278 | + /// <param name='certificatelastUpdated'> |
| 279 | + /// Certificate last updated time. |
| 280 | + /// </param> |
| 281 | + /// <param name='certificatehasPrivateKey'> |
| 282 | + /// Indicates if the certificate contains private key. |
| 283 | + /// </param> |
| 284 | + /// <param name='certificatenonce'> |
| 285 | + /// Random number generated to indicate Proof of Possession. |
| 286 | + /// </param> |
| 287 | + /// <param name='certificate'> |
| 288 | + /// base-64 representation of X509 certificate .cer file or just .pem |
| 289 | + /// file content. |
| 290 | + /// </param> |
| 291 | + /// <param name='customHeaders'> |
| 292 | + /// The headers that will be added to request. |
| 293 | + /// </param> |
| 294 | + /// <param name='cancellationToken'> |
| 295 | + /// The cancellation token. |
| 296 | + /// </param> |
| 297 | + /// <exception cref="ErrorDetailsException"> |
| 298 | + /// Thrown when the operation returned an invalid status code |
| 299 | + /// </exception> |
| 300 | + /// <exception cref="Microsoft.Rest.SerializationException"> |
| 301 | + /// Thrown when unable to deserialize the response |
| 302 | + /// </exception> |
| 303 | + /// <exception cref="Microsoft.Rest.ValidationException"> |
| 304 | + /// Thrown when a required parameter is null |
| 305 | + /// </exception> |
| 306 | + Task<AzureOperationResponse<CertificateResponse>> VerifyCertificateWithHttpMessagesAsync(string certificateName, string ifMatch, string resourceGroupName, string provisioningServiceName, string certificatename = default(string), byte[] certificaterawBytes = default(byte[]), bool? certificateisVerified = default(bool?), string certificatepurpose = default(string), System.DateTime? certificatecreated = default(System.DateTime?), System.DateTime? certificatelastUpdated = default(System.DateTime?), bool? certificatehasPrivateKey = default(bool?), string certificatenonce = default(string), string certificate = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); |
| 307 | + } |
| 308 | +} |
0 commit comments