Sha256: 117caea65b5b869fd551a317be00797f597ae790ce5b04fbfeeb963bb9f9dd3d

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 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
    #
    # Describes the resource that is used for triggering auto scaling.
    #
    class AutoScalingResourceMetric < AutoScalingMetric

      include MsRestAzure


      def initialize
        @kind = "Resource"
      end

      attr_accessor :kind

      # @return [AutoScalingResourceMetricName] Name of the resource. Possible
      # values include: 'cpu', 'memoryInGB'
      attr_accessor :name


      #
      # Mapper for AutoScalingResourceMetric class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Resource',
          type: {
            name: 'Composite',
            class_name: 'AutoScalingResourceMetric',
            model_properties: {
              kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      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/auto_scaling_resource_metric.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/auto_scaling_resource_metric.rb