Sha256: 811b49b884e4d2969c47e285bf9ba2b91a6e2aa570daa650ab9f2e669a17b745

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 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
    #
    # Defines an item in ServiceTypeHealthPolicyMap.
    #
    class ServiceTypeHealthPolicyMapItem

      include MsRestAzure

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

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


      #
      # Mapper for ServiceTypeHealthPolicyMapItem class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    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/service_type_health_policy_map_item.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/service_type_health_policy_map_item.rb