Sha256: 494cde1f7043ac8ffe3dc002529874a161ba66080b5a158eca845617d8f10372

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 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::V6_5_0_36
  module Models
    #
    # Defines an hour and minute of the day specified in 24 hour time.
    #
    class TimeOfDay

      include MsRestAzure

      # @return [Integer] Represents the hour of the day. Value must be between
      # 0 and 23 inclusive.
      attr_accessor :hour

      # @return [Integer] Represents the minute of the hour. Value must be
      # between 0 to 59 inclusive.
      attr_accessor :minute


      #
      # Mapper for TimeOfDay class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TimeOfDay',
          type: {
            name: 'Composite',
            class_name: 'TimeOfDay',
            model_properties: {
              hour: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Hour',
                constraints: {
                  InclusiveMaximum: 23,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              },
              minute: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Minute',
                constraints: {
                  InclusiveMaximum: 59,
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/6.5.0.36/generated/azure_service_fabric/models/time_of_day.rb
azure_service_fabric-0.18.0 lib/6.5.0.36/generated/azure_service_fabric/models/time_of_day.rb
azure_service_fabric-0.17.2 lib/6.5.0.36/generated/azure_service_fabric/models/time_of_day.rb