1# coding=utf-8 2# -------------------------------------------------------------------------- 3# Copyright (c) Microsoft Corporation. All rights reserved. 4# Licensed under the MIT License. See License.txt in the project root for 5# license information. 6# 7# Code generated by Microsoft (R) AutoRest Code Generator. 8# Changes may cause incorrect behavior and will be lost if the code is 9# regenerated. 10# -------------------------------------------------------------------------- 11 12from msrest.serialization import Model 13 14 15class CertificateOperation(Model): 16 """A certificate operation is returned in case of asynchronous requests. 17 18 Variables are only populated by the server, and will be ignored when 19 sending a request. 20 21 :ivar id: The certificate id. 22 :vartype id: str 23 :param issuer_parameters: Parameters for the issuer of the X509 component 24 of a certificate. 25 :type issuer_parameters: 26 ~azure.keyvault.v2016_10_01.models.IssuerParameters 27 :param csr: The certificate signing request (CSR) that is being used in 28 the certificate operation. 29 :type csr: bytearray 30 :param cancellation_requested: Indicates if cancellation was requested on 31 the certificate operation. 32 :type cancellation_requested: bool 33 :param status: Status of the certificate operation. 34 :type status: str 35 :param status_details: The status details of the certificate operation. 36 :type status_details: str 37 :param error: Error encountered, if any, during the certificate operation. 38 :type error: ~azure.keyvault.v2016_10_01.models.Error 39 :param target: Location which contains the result of the certificate 40 operation. 41 :type target: str 42 :param request_id: Identifier for the certificate operation. 43 :type request_id: str 44 """ 45 46 _validation = { 47 'id': {'readonly': True}, 48 } 49 50 _attribute_map = { 51 'id': {'key': 'id', 'type': 'str'}, 52 'issuer_parameters': {'key': 'issuer', 'type': 'IssuerParameters'}, 53 'csr': {'key': 'csr', 'type': 'bytearray'}, 54 'cancellation_requested': {'key': 'cancellation_requested', 'type': 'bool'}, 55 'status': {'key': 'status', 'type': 'str'}, 56 'status_details': {'key': 'status_details', 'type': 'str'}, 57 'error': {'key': 'error', 'type': 'Error'}, 58 'target': {'key': 'target', 'type': 'str'}, 59 'request_id': {'key': 'request_id', 'type': 'str'}, 60 } 61 62 def __init__(self, **kwargs): 63 super(CertificateOperation, self).__init__(**kwargs) 64 self.id = None 65 self.issuer_parameters = kwargs.get('issuer_parameters', None) 66 self.csr = kwargs.get('csr', None) 67 self.cancellation_requested = kwargs.get('cancellation_requested', None) 68 self.status = kwargs.get('status', None) 69 self.status_details = kwargs.get('status_details', None) 70 self.error = kwargs.get('error', None) 71 self.target = kwargs.get('target', None) 72 self.request_id = kwargs.get('request_id', None) 73