Class: Azure::ARM::EventHub::Models::EventHubProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_atDateTime

Returns Exact time the Event Hub was created.

Returns:

  • (DateTime)

    Exact time the Event Hub was created.



17
18
19
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 17

def created_at
  @created_at
end

#message_retention_in_daysInteger

Hub.

Returns:

  • (Integer)

    Number of days to retain the events for this Event



21
22
23
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 21

def message_retention_in_days
  @message_retention_in_days
end

#partition_countInteger

Returns Number of partitions created for the Event Hub.

Returns:

  • (Integer)

    Number of partitions created for the Event Hub.



24
25
26
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 24

def partition_count
  @partition_count
end

#partition_idsArray<String>

Returns Current number of shards on the Event Hub.

Returns:

  • (Array<String>)

    Current number of shards on the Event Hub.



27
28
29
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 27

def partition_ids
  @partition_ids
end

#statusEntityStatus

the Event Hub. Possible values include: ‘Active’, ‘Disabled’, ‘Restoring’, ‘SendDisabled’, ‘ReceiveDisabled’, ‘Creating’, ‘Deleting’, ‘Renaming’, ‘Unknown’

Returns:

  • (EntityStatus)

    Enumerates the possible values for the status of



33
34
35
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 33

def status
  @status
end

#updated_atDateTime

Returns The exact time the message was updated.

Returns:

  • (DateTime)

    The exact time the message was updated.



36
37
38
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 36

def updated_at
  @updated_at
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb', line 43

def self.mapper()
  {
    required: false,
    serialized_name: 'EventHubProperties',
    type: {
      name: 'Composite',
      class_name: 'EventHubProperties',
      model_properties: {
        created_at: {
          required: false,
          serialized_name: 'createdAt',
          type: {
            name: 'DateTime'
          }
        },
        message_retention_in_days: {
          required: false,
          serialized_name: 'messageRetentionInDays',
          type: {
            name: 'Number'
          }
        },
        partition_count: {
          required: false,
          serialized_name: 'partitionCount',
          type: {
            name: 'Number'
          }
        },
        partition_ids: {
          required: false,
          serialized_name: 'partitionIds',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        status: {
          required: false,
          serialized_name: 'status',
          type: {
            name: 'Enum',
            module: 'EntityStatus'
          }
        },
        updated_at: {
          required: false,
          serialized_name: 'updatedAt',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end