Class: Azure::ServiceFabric::V7_0_0_42::Models::ServiceProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb

Overview

Describes properties of a service resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_scaling_policiesArray<AutoScalingPolicy>

Returns Auto scaling policies.

Returns:



26
27
28
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 26

def auto_scaling_policies
  @auto_scaling_policies
end

#descriptionString

Returns User readable description of the service.

Returns:

  • (String)

    User readable description of the service.



16
17
18
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 16

def description
  @description
end

#dns_nameString

Returns Dns name of the service.

Returns:

  • (String)

    Dns name of the service.



51
52
53
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 51

def dns_name
  @dns_name
end

#execution_policyExecutionPolicy

Returns The execution policy of the service.

Returns:



23
24
25
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 23

def execution_policy
  @execution_policy
end

#health_stateHealthState

resource. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    Describes the health state of an application



40
41
42
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 40

def health_state
  @health_state
end

#identity_refsArray<ServiceIdentity>

Returns The service identity list.

Returns:



48
49
50
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 48

def identity_refs
  @identity_refs
end

#replica_countInteger

Defaults to 1 if not specified.

Returns:

  • (Integer)

    The number of replicas of the service to create.



20
21
22
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 20

def replica_count
  @replica_count
end

#statusResourceStatus

include: ‘Unknown’, ‘Ready’, ‘Upgrading’, ‘Creating’, ‘Deleting’, ‘Failed’

Returns:



31
32
33
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 31

def status
  @status
end

#status_detailsString

of the service.

Returns:

  • (String)

    Gives additional information about the current status



35
36
37
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 35

def status_details
  @status_details
end

#unhealthy_evaluationString

additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.

Returns:

  • (String)

    When the service’s health state is not ‘Ok’, this



45
46
47
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 45

def unhealthy_evaluation
  @unhealthy_evaluation
end

Class Method Details

.mapperObject

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



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_properties.rb', line 58

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'
          }
        },
        execution_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'executionPolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'ExecutionPolicy',
            class_name: 'ExecutionPolicy'
          }
        },
        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'
                }
            }
          }
        },
        dns_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dnsName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end