text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for
  # license information.
  #
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is
  # regenerated.
  # --------------------------------------------------------------------------
  
  from .application_event import ApplicationEvent
  
  
  class ChaosRestartCodePackageFaultCompletedEvent(ApplicationEvent):
      """Chaos Restart Code Package Fault Completed event.
  
      All required parameters must be populated in order to send to Azure.
  
      :param event_instance_id: Required. The identifier for the FabricEvent
       instance.
      :type event_instance_id: str
      :param time_stamp: Required. The time event was logged.
      :type time_stamp: datetime
      :param has_correlated_events: Shows there is existing related events
       available.
      :type has_correlated_events: bool
      :param kind: Required. Constant filled by server.
      :type kind: str
      :param application_id: Required. The identity of the application. This is
       an encoded representation of the application name. This is used in the
       REST APIs to identify the application resource.
       Starting in version 6.0, hierarchical names are delimited with the "\\~"
       character. For example, if the application name is "fabric:/myapp/app1",
       the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
       in previous versions.
      :type application_id: str
      :param fault_group_id: Required. Id of fault group.
      :type fault_group_id: str
      :param fault_id: Required. Id of fault.
      :type fault_id: str
      :param node_name: Required. The name of a Service Fabric node.
      :type node_name: str
      :param service_manifest_name: Required. Service manifest name.
      :type service_manifest_name: str
      :param code_package_name: Required. Code package name.
      :type code_package_name: str
      :param service_package_activation_id: Required. Id of Service package
       activation.
      :type service_package_activation_id: str
      """
  
      _validation = {
          'event_instance_id': {'required': True},
          'time_stamp': {'required': True},
          'kind': {'required': True},
          'application_id': {'required': True},
          'fault_group_id': {'required': True},
          'fault_id': {'required': True},
          'node_name': {'required': True},
          'service_manifest_name': {'required': True},
          'code_package_name': {'required': True},
          'service_package_activation_id': {'required': True},
      }
  
      _attribute_map = {
          'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'},
          'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'},
          'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'},
          'kind': {'key': 'Kind', 'type': 'str'},
          'application_id': {'key': 'ApplicationId', 'type': 'str'},
          'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'},
          'fault_id': {'key': 'FaultId', 'type': 'str'},
          'node_name': {'key': 'NodeName', 'type': 'str'},
          'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
          'code_package_name': {'key': 'CodePackageName', 'type': 'str'},
          'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'},
      }
  
      def __init__(self, **kwargs):
          super(ChaosRestartCodePackageFaultCompletedEvent, self).__init__(**kwargs)
          self.fault_group_id = kwargs.get('fault_group_id', None)
          self.fault_id = kwargs.get('fault_id', None)
          self.node_name = kwargs.get('node_name', None)
          self.service_manifest_name = kwargs.get('service_manifest_name', None)
          self.code_package_name = kwargs.get('code_package_name', None)
          self.service_package_activation_id = kwargs.get('service_package_activation_id', None)
          self.kind = 'ChaosRestartCodePackageFaultCompleted'
  