Class: Azure::ServiceFabric::V6_2_0_9::Models::StatefulServiceInfo

Inherits:
ServiceInfo
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_info.rb

Overview

Information about a stateful Service Fabric service.

Instance Attribute Summary collapse

Attributes inherited from ServiceInfo

#health_state, #id, #is_service_group, #manifest_version, #name, #service_status, #type_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatefulServiceInfo

Returns a new instance of StatefulServiceInfo.



16
17
18
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_info.rb', line 16

def initialize
  @ServiceKind = "Stateful"
end

Instance Attribute Details

#has_persisted_stateBoolean

Returns Whether the service has persisted state.

Returns:

  • (Boolean)

    Whether the service has persisted state.



23
24
25
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_info.rb', line 23

def has_persisted_state
  @has_persisted_state
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



20
21
22
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_info.rb', line 20

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/stateful_service_info.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateful',
    type: {
      name: 'Composite',
      class_name: 'StatefulServiceInfo',
      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'
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        has_persisted_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HasPersistedState',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end