Class: Azure::ServiceFabric::V6_5_0_36::Models::ChaosContext

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/chaos_context.rb

Overview

Describes a map, which is a collection of (string, string) type key-value pairs. The map can be used to record information about the Chaos run. There cannot be more than 100 such pairs and each string (key or value) can be at most 4095 characters long. This map is set by the starter of the Chaos run to optionally store the context about the specific run.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#mapHash{String => String}

collection of ChaosContextMapItem’s.

Returns:

  • (Hash{String => String})

    Describes a map that contains a



22
23
24
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_context.rb', line 22

def map
  @map
end

Class Method Details

.mapperObject

Mapper for ChaosContext class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_context.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ChaosContext',
    type: {
      name: 'Composite',
      class_name: 'ChaosContext',
      model_properties: {
        map: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Map',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end