Class: Azure::ServiceFabric::V6_5_0_36::Models::ServiceReplicaProperties

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

Overview

Describes the properties of a service replica.

Direct Known Subclasses

ServiceReplicaDescription

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.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb', line 24

def code_packages
  @code_packages
end

#diagnosticsDiagnosticsRef

Returns Reference to sinks in DiagnosticsDescription.

Returns:



31
32
33
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb', line 31

def diagnostics
  @diagnostics
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.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb', line 28

def network_refs
  @network_refs
end

#os_typeOperatingSystemType

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

Returns:



17
18
19
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb', line 17

def os_type
  @os_type
end

Class Method Details

.mapperObject

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



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
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_replica_properties.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceReplicaProperties',
    type: {
      name: 'Composite',
      class_name: 'ServiceReplicaProperties',
      model_properties: {
        os_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'osType',
          type: {
            name: 'String'
          }
        },
        code_packages: {
          client_side_validation: true,
          required: true,
          serialized_name: '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: '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: 'diagnostics',
          type: {
            name: 'Composite',
            class_name: 'DiagnosticsRef'
          }
        }
      }
    }
  }
end