# 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_3_0_9 module Models # # This type describes the resource requirements for a container or a # service. # class ResourceRequirements include MsRestAzure # @return [ResourceRequests] Describes the requested resources for a # given container. attr_accessor :requests # @return [ResourceLimits] Describes the maximum limits on the resources # for a given container. attr_accessor :limits # # Mapper for ResourceRequirements class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResourceRequirements', type: { name: 'Composite', class_name: 'ResourceRequirements', model_properties: { requests: { client_side_validation: true, required: true, serialized_name: 'requests', type: { name: 'Composite', class_name: 'ResourceRequests' } }, limits: { client_side_validation: true, required: false, serialized_name: 'limits', type: { name: 'Composite', class_name: 'ResourceLimits' } } } } } end end end end