Class: Azure::ServiceFabric::V6_4_0_36::Models::ServiceInfo

Inherits:
Object
  • Object
show all
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

StatefulServiceInfo, StatelessServiceInfo

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServiceInfo

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_stateHealthState

as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    The health state of a Service Fabric entity such



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

#idString

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.

Returns:

  • (String)

    The identity of the service. This ID is an encoded



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_groupBoolean

Returns Whether the service is in a service group.

Returns:

  • (Boolean)

    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_versionString

Returns The version of the service manifest.

Returns:

  • (String)

    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

#nameString

scheme.

Returns:

  • (String)

    The full name of the service with ‘fabric:’ URI



37
38
39
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_info.rb', line 37

def name
  @name
end

#service_statusServiceStatus

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

Returns:

  • (ServiceStatus)

    The status of the application. Possible values



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

#ServiceKindObject

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_nameString

manifest.

Returns:

  • (String)

    Name of the service type as specified in the service



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

.mapperObject

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