Sha256: 5fe9bb6dbc3578702c05b244c2286cdd95ce0afd4dac3d5a515ae8416d65f825

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

# 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
    #
    # Represents an event generated during a Chaos run.
    #
    class ChaosEvent

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["ExecutingFaults"] = "ExecutingFaultsChaosEvent"
      @@discriminatorMap["Started"] = "StartedChaosEvent"
      @@discriminatorMap["Stopped"] = "StoppedChaosEvent"
      @@discriminatorMap["TestError"] = "TestErrorChaosEvent"
      @@discriminatorMap["ValidationFailed"] = "ValidationFailedChaosEvent"
      @@discriminatorMap["Waiting"] = "WaitingChaosEvent"

      def initialize
        @Kind = "ChaosEvent"
      end

      attr_accessor :Kind

      # @return [DateTime] The UTC timestamp when this Chaos event was
      # generated.
      attr_accessor :time_stamp_utc


      #
      # Mapper for ChaosEvent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ChaosEvent',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'Kind',
            uber_parent: 'ChaosEvent',
            class_name: 'ChaosEvent',
            model_properties: {
              time_stamp_utc: {
                client_side_validation: true,
                required: true,
                serialized_name: 'TimeStampUtc',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/7.0.0.42/generated/azure_service_fabric/models/chaos_event.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/chaos_event.rb