Class: Azure::ServiceFabric::V6_4_0_36::Models::ServiceInfo
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_4_0_36::Models::ServiceInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb
Overview
Information about a Service Fabric service.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#health_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc.
-
#id ⇒ String
representation of the service name.
-
#is_service_group ⇒ Boolean
Whether the service is in a service group.
-
#manifest_version ⇒ String
The version of the service manifest.
-
#name ⇒ String
scheme.
-
#service_status ⇒ ServiceStatus
include: ‘Unknown’, ‘Active’, ‘Upgrading’, ‘Deleting’, ‘Creating’, ‘Failed’.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
-
#type_name ⇒ String
manifest.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServiceInfo class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServiceInfo
constructor
A new instance of ServiceInfo.
Constructor Details
#initialize ⇒ ServiceInfo
Returns a new instance of ServiceInfo.
19 20 21 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 19 def initialize @ServiceKind = "ServiceInfo" end |
Instance Attribute Details
#health_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’
49 50 51 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 49 def health_state @health_state end |
#id ⇒ String
representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the “~” character. For example, if the service name is “fabric:/myapp/app1/svc1”, the service identity would be “myapp~app1~svc1” in 6.0+ and “myapp/app1/svc1” in previous versions.
33 34 35 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 33 def id @id end |
#is_service_group ⇒ Boolean
Returns Whether the service is in a service group.
57 58 59 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 57 def is_service_group @is_service_group end |
#manifest_version ⇒ String
Returns The version of the service manifest.
44 45 46 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 44 def manifest_version @manifest_version end |
#name ⇒ String
scheme.
37 38 39 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 37 def name @name end |
#service_status ⇒ ServiceStatus
include: ‘Unknown’, ‘Active’, ‘Upgrading’, ‘Deleting’, ‘Creating’, ‘Failed’
54 55 56 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 54 def service_status @service_status end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
23 24 25 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 23 def ServiceKind @ServiceKind end |
#type_name ⇒ String
manifest.
41 42 43 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 41 def type_name @type_name end |
Class Method Details
.mapper ⇒ Object
Mapper for ServiceInfo class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 64 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ServiceInfo', type: { name: 'Composite', polymorphic_discriminator: 'ServiceKind', uber_parent: 'ServiceInfo', class_name: 'ServiceInfo', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'Id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'Name', type: { name: 'String' } }, type_name: { client_side_validation: true, required: false, serialized_name: 'TypeName', type: { name: 'String' } }, manifest_version: { client_side_validation: true, required: false, serialized_name: 'ManifestVersion', type: { name: 'String' } }, health_state: { client_side_validation: true, required: false, serialized_name: 'HealthState', type: { name: 'String' } }, service_status: { client_side_validation: true, required: false, serialized_name: 'ServiceStatus', type: { name: 'String' } }, is_service_group: { client_side_validation: true, required: false, serialized_name: 'IsServiceGroup', type: { name: 'Boolean' } } } } } end |