Class: Azure::ServiceFabric::V6_3_0_9::Models::ServiceResourceDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::ServiceResourceDescription
- 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
-
#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.
-
#health_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc.
-
#name ⇒ String
Service resource name.
-
#network_refs ⇒ Array<NetworkRef>
service needs to be part of.
-
#os_type ⇒ OperatingSystemTypes
the code in service.
-
#replica_count ⇒ Integer
Defaults to 1 if not specified.
-
#status ⇒ ServiceResourceStatus
Possible values include: ‘Unknown’, ‘Active’, ‘Upgrading’, ‘Deleting’, ‘Creating’, ‘Failed’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServiceResourceDescription class as Ruby Hash.
Instance Attribute Details
#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.).
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 |
#description ⇒ String
Returns 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 |
#diagnostics ⇒ DiagnosticsRef
Returns Reference to sinks in DiagnosticsDescription.
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_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’
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 |
#name ⇒ String
Returns 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_refs ⇒ Array<NetworkRef>
service needs to be part of.
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_type ⇒ OperatingSystemTypes
the code in service. Possible values include: ‘Linux’, ‘Windows’
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_count ⇒ Integer
Defaults to 1 if not specified.
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 |
#status ⇒ ServiceResourceStatus
Possible values include: ‘Unknown’, ‘Active’, ‘Upgrading’, ‘Deleting’, ‘Creating’, ‘Failed’
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
.mapper ⇒ Object
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 |