# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::V7_0_0_42 module Models # # Cluster Upgrade Started event. # class ClusterUpgradeStartedEvent < ClusterEvent include MsRestAzure def initialize @Kind = "ClusterUpgradeStarted" end attr_accessor :Kind # @return [String] Current Cluster version. attr_accessor :current_cluster_version # @return [String] Target Cluster version. attr_accessor :target_cluster_version # @return [String] Type of upgrade. attr_accessor :upgrade_type # @return [String] Mode of upgrade. attr_accessor :rolling_upgrade_mode # @return [String] Action if failed. attr_accessor :failure_action # # Mapper for ClusterUpgradeStartedEvent class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ClusterUpgradeStarted', type: { name: 'Composite', class_name: 'ClusterUpgradeStartedEvent', model_properties: { event_instance_id: { client_side_validation: true, required: true, serialized_name: 'EventInstanceId', type: { name: 'String' } }, category: { client_side_validation: true, required: false, serialized_name: 'Category', type: { name: 'String' } }, time_stamp: { client_side_validation: true, required: true, serialized_name: 'TimeStamp', type: { name: 'DateTime' } }, has_correlated_events: { client_side_validation: true, required: false, serialized_name: 'HasCorrelatedEvents', type: { name: 'Boolean' } }, Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, current_cluster_version: { client_side_validation: true, required: true, serialized_name: 'CurrentClusterVersion', type: { name: 'String' } }, target_cluster_version: { client_side_validation: true, required: true, serialized_name: 'TargetClusterVersion', type: { name: 'String' } }, upgrade_type: { client_side_validation: true, required: true, serialized_name: 'UpgradeType', type: { name: 'String' } }, rolling_upgrade_mode: { client_side_validation: true, required: true, serialized_name: 'RollingUpgradeMode', type: { name: 'String' } }, failure_action: { client_side_validation: true, required: true, serialized_name: 'FailureAction', type: { name: 'String' } } } } } end end end end