class Azure::ServiceFabric::V6_3_0_9::Models::ServiceTypeHealthPolicyMapItem

Defines an item in ServiceTypeHealthPolicyMap.

Attributes

key[RW]

@return [String] The key of the service type health policy map item. This is the name of the service type.

value[RW]

@return [ServiceTypeHealthPolicy] The value of the service type health policy map item. This is the ServiceTypeHealthPolicy for this service type.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.3.0.9/generated/azure_service_fabric/models/service_type_health_policy_map_item.rb, line 29
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceTypeHealthPolicyMapItem',
    type: {
      name: 'Composite',
      class_name: 'ServiceTypeHealthPolicyMapItem',
      model_properties: {
        key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Key',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Value',
          type: {
            name: 'Composite',
            class_name: 'ServiceTypeHealthPolicy'
          }
        }
      }
    }
  }
end