Class: Azure::ContainerInstance::Mgmt::V2019_12_01::Models::ContainerProbe

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb

Overview

The container probe, for liveness or readiness

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#execContainerExec

Returns The execution command to probe.

Returns:



16
17
18
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 16

def exec
  @exec
end

#failure_thresholdInteger

Returns The failure threshold.

Returns:

  • (Integer)

    The failure threshold.



28
29
30
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 28

def failure_threshold
  @failure_threshold
end

#http_getContainerHttpGet

Returns The Http Get settings to probe.

Returns:



19
20
21
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 19

def http_get
  @http_get
end

#initial_delay_secondsInteger

Returns The initial delay seconds.

Returns:

  • (Integer)

    The initial delay seconds.



22
23
24
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 22

def initial_delay_seconds
  @initial_delay_seconds
end

#period_secondsInteger

Returns The period seconds.

Returns:

  • (Integer)

    The period seconds.



25
26
27
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 25

def period_seconds
  @period_seconds
end

#success_thresholdInteger

Returns The success threshold.

Returns:

  • (Integer)

    The success threshold.



31
32
33
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 31

def success_threshold
  @success_threshold
end

#timeout_secondsInteger

Returns The timeout seconds.

Returns:

  • (Integer)

    The timeout seconds.



34
35
36
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 34

def timeout_seconds
  @timeout_seconds
end

Class Method Details

.mapperObject

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



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
102
103
104
105
106
107
108
109
110
111
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_probe.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerProbe',
    type: {
      name: 'Composite',
      class_name: 'ContainerProbe',
      model_properties: {
        exec: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exec',
          type: {
            name: 'Composite',
            class_name: 'ContainerExec'
          }
        },
        http_get: {
          client_side_validation: true,
          required: false,
          serialized_name: 'httpGet',
          type: {
            name: 'Composite',
            class_name: 'ContainerHttpGet'
          }
        },
        initial_delay_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'initialDelaySeconds',
          type: {
            name: 'Number'
          }
        },
        period_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'periodSeconds',
          type: {
            name: 'Number'
          }
        },
        failure_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'failureThreshold',
          type: {
            name: 'Number'
          }
        },
        success_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'successThreshold',
          type: {
            name: 'Number'
          }
        },
        timeout_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeoutSeconds',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end