Class: Azure::ServiceFabric::V6_3_0_9::Models::ServiceResourceDescription

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

Overview

Describes a service fabric service resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#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:



24
25
26
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 24

def code_packages
  @code_packages
end

#descriptionString

Returns User readable description of the service.

Returns:

  • (String)

    User readable description of the service.



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

def description
  @description
end

#diagnosticsDiagnosticsRef

Returns Reference to sinks in DiagnosticsDescription.

Returns:



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

def diagnostics
  @diagnostics
end

#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



43
44
45
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 43

def health_state
  @health_state
end

#nameString

Returns Service resource name.

Returns:

  • (String)

    Service resource name.



51
52
53
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 51

def name
  @name
end

#network_refsArray<NetworkRef>

service needs to be part of.

Returns:

  • (Array<NetworkRef>)

    The names of the private networks that this



28
29
30
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 28

def network_refs
  @network_refs
end

#os_typeOperatingSystemTypes

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

Returns:



17
18
19
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 17

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.



38
39
40
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 38

def replica_count
  @replica_count
end

#statusServiceResourceStatus

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

Returns:



48
49
50
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 48

def status
  @status
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_resource_description.rb', line 58

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceResourceDescription',
    type: {
      name: 'Composite',
      class_name: 'ServiceResourceDescription',
      model_properties: {
        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'
          }
        },
        health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.healthState',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end