class Azure::ServiceFabric::V6_5_0_36::Models::ServiceProperties

Describes properties of a service resource.

Attributes

auto_scaling_policies[RW]

@return [Array<AutoScalingPolicy>] Auto scaling policies

description[RW]

@return [String] User readable description of the service.

health_state[RW]

@return [HealthState] Describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'

identity_refs[RW]

@return [Array<ServiceIdentity>] The service identity list.

replica_count[RW]

@return [Integer] The number of replicas of the service to create. Defaults to 1 if not specified.

status[RW]

@return [ResourceStatus] Status of the service. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'

status_details[RW]

@return [String] Gives additional information about the current status of the service.

unhealthy_evaluation[RW]

@return [String] When the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.5.0.36/generated/azure_service_fabric/models/service_properties.rb, line 52
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceProperties',
    type: {
      name: 'Composite',
      class_name: 'ServiceProperties',
      model_properties: {
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        replica_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'replicaCount',
          type: {
            name: 'Number'
          }
        },
        auto_scaling_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'autoScalingPolicies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AutoScalingPolicyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'AutoScalingPolicy'
                }
            }
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        status_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'statusDetails',
          type: {
            name: 'String'
          }
        },
        health_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'healthState',
          type: {
            name: 'String'
          }
        },
        unhealthy_evaluation: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unhealthyEvaluation',
          type: {
            name: 'String'
          }
        },
        identity_refs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identityRefs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceIdentityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceIdentity'
                }
            }
          }
        }
      }
    }
  }
end