Class: Azure::ServiceFabric::V6_5_0_36::Models::ClusterUpgradeStartedEvent

Inherits:
ClusterEvent show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb

Overview

Cluster Upgrade Started event.

Instance Attribute Summary collapse

Attributes inherited from FabricEvent

#category, #event_instance_id, #has_correlated_events, #time_stamp

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClusterUpgradeStartedEvent

Returns a new instance of ClusterUpgradeStartedEvent.



16
17
18
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 16

def initialize
  @Kind = "ClusterUpgradeStarted"
end

Instance Attribute Details

#current_cluster_versionString

Returns Current Cluster version.

Returns:

  • (String)

    Current Cluster version.



23
24
25
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 23

def current_cluster_version
  @current_cluster_version
end

#failure_actionString

Returns Action if failed.

Returns:

  • (String)

    Action if failed.



35
36
37
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 35

def failure_action
  @failure_action
end

#KindObject

Returns the value of attribute Kind.



20
21
22
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 20

def Kind
  @Kind
end

#rolling_upgrade_modeString

Returns Mode of upgrade.

Returns:

  • (String)

    Mode of upgrade.



32
33
34
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 32

def rolling_upgrade_mode
  @rolling_upgrade_mode
end

#target_cluster_versionString

Returns Target Cluster version.

Returns:

  • (String)

    Target Cluster version.



26
27
28
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 26

def target_cluster_version
  @target_cluster_version
end

#upgrade_typeString

Returns Type of upgrade.

Returns:

  • (String)

    Type of upgrade.



29
30
31
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 29

def upgrade_type
  @upgrade_type
end

Class Method Details

.mapperObject

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



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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/cluster_upgrade_started_event.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterUpgradeStarted',
    type: {
      name: 'Composite',
      class_name: 'ClusterUpgradeStartedEvent',
      model_properties: {
        event_instance_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'EventInstanceId',
          type: {
            name: 'String'
          }
        },
        category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Category',
          type: {
            name: 'String'
          }
        },
        time_stamp: {
          client_side_validation: true,
          required: true,
          serialized_name: 'TimeStamp',
          type: {
            name: 'DateTime'
          }
        },
        has_correlated_events: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HasCorrelatedEvents',
          type: {
            name: 'Boolean'
          }
        },
        Kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Kind',
          type: {
            name: 'String'
          }
        },
        current_cluster_version: {
          client_side_validation: true,
          required: true,
          serialized_name: 'CurrentClusterVersion',
          type: {
            name: 'String'
          }
        },
        target_cluster_version: {
          client_side_validation: true,
          required: true,
          serialized_name: 'TargetClusterVersion',
          type: {
            name: 'String'
          }
        },
        upgrade_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'UpgradeType',
          type: {
            name: 'String'
          }
        },
        rolling_upgrade_mode: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RollingUpgradeMode',
          type: {
            name: 'String'
          }
        },
        failure_action: {
          client_side_validation: true,
          required: true,
          serialized_name: 'FailureAction',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end