Class: Azure::ServiceFabric::V7_0_0_42::Models::ServiceResourceDescription

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

Overview

This type describes a service resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_scaling_policiesArray<AutoScalingPolicy>

Returns Auto scaling policies.

Returns:



47
48
49
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 47

def auto_scaling_policies
  @auto_scaling_policies
end

#code_packagesArray<ContainerCodePackageProperties>

code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.).

Returns:



27
28
29
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 27

def code_packages
  @code_packages
end

#descriptionString

Returns User readable description of the service.

Returns:

  • (String)

    User readable description of the service.



37
38
39
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 37

def description
  @description
end

#diagnosticsDiagnosticsRef

Returns Reference to sinks in DiagnosticsDescription.

Returns:



34
35
36
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 34

def diagnostics
  @diagnostics
end

#dns_nameString

Returns Dns name of the service.

Returns:

  • (String)

    Dns name of the service.



72
73
74
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 72

def dns_name
  @dns_name
end

#execution_policyExecutionPolicy

Returns The execution policy of the service.

Returns:



44
45
46
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 44

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



61
62
63
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 61

def health_state
  @health_state
end

#identity_refsArray<ServiceIdentity>

Returns The service identity list.

Returns:



69
70
71
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 69

def identity_refs
  @identity_refs
end

#nameString

Returns Name of the Service resource.

Returns:

  • (String)

    Name of the Service resource.



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

def name
  @name
end

#network_refsArray<NetworkRef>

service needs to be part of.

Returns:

  • (Array<NetworkRef>)

    The names of the private networks that this



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

def network_refs
  @network_refs
end

#os_typeOperatingSystemType

in service. Possible values include: ‘Linux’, ‘Windows’

Returns:



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

def os_type
  @os_type
end

#replica_countInteger

Defaults to 1 if not specified.

Returns:

  • (Integer)

    The number of replicas of the service to create.



41
42
43
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 41

def replica_count
  @replica_count
end

#statusResourceStatus

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

Returns:



52
53
54
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 52

def status
  @status
end

#status_detailsString

of the service.

Returns:

  • (String)

    Gives additional information about the current status



56
57
58
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 56

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



66
67
68
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 66

def unhealthy_evaluation
  @unhealthy_evaluation
end

Class Method Details

.mapperObject

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



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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/service_resource_description.rb', line 79

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceResourceDescription',
    type: {
      name: 'Composite',
      class_name: 'ServiceResourceDescription',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        os_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.osType',
          type: {
            name: 'String'
          }
        },
        code_packages: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.codePackages',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContainerCodePackagePropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ContainerCodePackageProperties'
                }
            }
          }
        },
        network_refs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkRefs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'NetworkRefElementType',
                type: {
                  name: 'Composite',
                  class_name: 'NetworkRef'
                }
            }
          }
        },
        diagnostics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diagnostics',
          type: {
            name: 'Composite',
            class_name: 'DiagnosticsRef'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        replica_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.replicaCount',
          type: {
            name: 'Number'
          }
        },
        execution_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.executionPolicy',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'ExecutionPolicy',
            class_name: 'ExecutionPolicy'
          }
        },
        auto_scaling_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.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: 'properties.status',
          type: {
            name: 'String'
          }
        },
        status_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.statusDetails',
          type: {
            name: 'String'
          }
        },
        health_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.healthState',
          type: {
            name: 'String'
          }
        },
        unhealthy_evaluation: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unhealthyEvaluation',
          type: {
            name: 'String'
          }
        },
        identity_refs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.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: 'properties.dnsName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end