Class: Azure::ServiceFabric::V7_0_0_42::Models::ServiceResourceDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V7_0_0_42::Models::ServiceResourceDescription
- 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
-
#auto_scaling_policies ⇒ Array<AutoScalingPolicy>
Auto scaling policies.
-
#code_packages ⇒ Array<ContainerCodePackageProperties>
code packages that forms the service.
-
#description ⇒ String
User readable description of the service.
-
#diagnostics ⇒ DiagnosticsRef
Reference to sinks in DiagnosticsDescription.
-
#dns_name ⇒ String
Dns name of the service.
-
#execution_policy ⇒ ExecutionPolicy
The execution policy of the service.
-
#health_state ⇒ HealthState
resource.
-
#identity_refs ⇒ Array<ServiceIdentity>
The service identity list.
-
#name ⇒ String
Name of the Service resource.
-
#network_refs ⇒ Array<NetworkRef>
service needs to be part of.
-
#os_type ⇒ OperatingSystemType
in service.
-
#replica_count ⇒ Integer
Defaults to 1 if not specified.
-
#status ⇒ ResourceStatus
include: ‘Unknown’, ‘Ready’, ‘Upgrading’, ‘Creating’, ‘Deleting’, ‘Failed’.
-
#status_details ⇒ String
of the service.
-
#unhealthy_evaluation ⇒ String
additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServiceResourceDescription class as Ruby Hash.
Instance Attribute Details
#auto_scaling_policies ⇒ Array<AutoScalingPolicy>
Returns Auto scaling policies.
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_packages ⇒ Array<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.).
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 |
#description ⇒ String
Returns 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 |
#diagnostics ⇒ DiagnosticsRef
Returns Reference to sinks in DiagnosticsDescription.
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_name ⇒ String
Returns 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_policy ⇒ ExecutionPolicy
Returns The execution policy of the service.
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_state ⇒ HealthState
resource. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’
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_refs ⇒ Array<ServiceIdentity>
Returns The service identity list.
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 |
#name ⇒ String
Returns 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_refs ⇒ Array<NetworkRef>
service needs to be part of.
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_type ⇒ OperatingSystemType
in service. Possible values include: ‘Linux’, ‘Windows’
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_count ⇒ Integer
Defaults to 1 if not specified.
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 |
#status ⇒ ResourceStatus
include: ‘Unknown’, ‘Ready’, ‘Upgrading’, ‘Creating’, ‘Deleting’, ‘Failed’
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_details ⇒ String
of the service.
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_evaluation ⇒ String
additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.
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
.mapper ⇒ Object
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 |