class Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate

The application resource for patch operations.

Attributes

maximum_nodes[RW]

@return [Integer] The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. Default value: 0 .

metrics[RW]

@return [Array<ApplicationMetricDescription>]

minimum_nodes[RW]

@return [Integer] The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.

parameters[RW]

@return [Array<ApplicationParameter>]

remove_application_capacity[RW]

@return [Boolean] The version of the application type

type_version[RW]

@return [String]

upgrade_policy[RW]

@return [ApplicationUpgradePolicy]

Private Class Methods

mapper() click to toggle source

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

# File lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb, line 50
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationResourceUpdate',
    type: {
      name: 'Composite',
      class_name: 'ApplicationResourceUpdate',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        type_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.typeVersion',
          type: {
            name: 'String'
          }
        },
        parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.parameters',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationParameterElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationParameter'
                }
            }
          }
        },
        upgrade_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.upgradePolicy',
          type: {
            name: 'Composite',
            class_name: 'ApplicationUpgradePolicy'
          }
        },
        minimum_nodes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.minimumNodes',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        maximum_nodes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maximumNodes',
          default_value: 0,
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        remove_application_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.removeApplicationCapacity',
          type: {
            name: 'Boolean'
          }
        },
        metrics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.metrics',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ApplicationMetricDescriptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ApplicationMetricDescription'
                }
            }
          }
        }
      }
    }
  }
end