Class: Azure::DigitalTwins::Mgmt::V2020_10_31::Models::EventHub

Inherits:
DigitalTwinsEndpointResourceProperties show all
Includes:
MsRestAzure
Defined in:
lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb

Overview

Properties related to EventHub.

Instance Attribute Summary collapse

Attributes inherited from DigitalTwinsEndpointResourceProperties

#created_time, #dead_letter_secret, #provisioning_state

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventHub

Returns a new instance of EventHub.



16
17
18
# File 'lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb', line 16

def initialize
  @endpointType = "EventHub"
end

Instance Attribute Details

#connection_string_primary_keyString

obfuscated during read.

Returns:

  • (String)

    PrimaryConnectionString of the endpoint. Will be



24
25
26
# File 'lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb', line 24

def connection_string_primary_key
  @connection_string_primary_key
end

#connection_string_secondary_keyString

obfuscated during read.

Returns:

  • (String)

    SecondaryConnectionString of the endpoint. Will be



28
29
30
# File 'lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb', line 28

def connection_string_secondary_key
  @connection_string_secondary_key
end

#endpointTypeObject

Returns the value of attribute endpointType.



20
21
22
# File 'lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb', line 20

def endpointType
  @endpointType
end

Class Method Details

.mapperObject

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



35
36
37
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
# File 'lib/2020-10-31/generated/azure_mgmt_digitaltwins/models/event_hub.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EventHub',
    type: {
      name: 'Composite',
      class_name: 'EventHub',
      model_properties: {
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'provisioningState',
          type: {
            name: 'String'
          }
        },
        created_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'createdTime',
          type: {
            name: 'DateTime'
          }
        },
        dead_letter_secret: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deadLetterSecret',
          type: {
            name: 'String'
          }
        },
        endpointType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointType',
          type: {
            name: 'String'
          }
        },
        connection_string_primary_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionStringPrimaryKey',
          type: {
            name: 'String'
          }
        },
        connection_string_secondary_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionStringSecondaryKey',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end