class Azure::ServiceFabric::V7_0_0_42::Models::ServiceReplicaProperties

Describes the properties of a service replica.

Attributes

code_packages[RW]

@return [Array<ContainerCodePackageProperties>] Describes the set of 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.).

diagnostics[RW]

@return [DiagnosticsRef] Reference to sinks in DiagnosticsDescription.

network_refs[RW]

@return [Array<NetworkRef>] The names of the private networks that this service needs to be part of.

os_type[RW]

@return [OperatingSystemType] The operation system required by the code in service. Possible values include: 'Linux', 'Windows'

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/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