Class: Azure::IotHub::Mgmt::V2018_12_01_preview::Models::RoutingStorageContainerProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb

Overview

The properties related to a storage container endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#batch_frequency_in_secondsInteger

Value should be between 60 and 720 seconds. Default value is 300 seconds.

Returns:

  • (Integer)

    Time interval at which blobs are written to storage.



42
43
44
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 42

def batch_frequency_in_seconds
  @batch_frequency_in_seconds
end

#connection_stringString

Returns The connection string of the storage account.

Returns:

  • (String)

    The connection string of the storage account.



16
17
18
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 16

def connection_string
  @connection_string
end

#container_nameString

Returns The name of storage container in the storage account.

Returns:

  • (String)

    The name of storage container in the storage account.



32
33
34
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 32

def container_name
  @container_name
end

#encodingEnum

Supported values are ‘avro’, ‘avrodeflate’, and ‘JSON’. Default value is ‘avro’. Possible values include: ‘Avro’, ‘AvroDeflate’, ‘JSON’

Returns:

  • (Enum)

    Encoding that is used to serialize messages to blobs.



52
53
54
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 52

def encoding
  @encoding
end

#file_name_formatString

iothub/partition/YYYY/MM/DD/HH/mm. All parameters are mandatory but can be reordered.

Returns:

  • (String)

    File name format for the blob. Default format is



37
38
39
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 37

def file_name_format
  @file_name_format
end

#max_chunk_size_in_bytesInteger

storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB).

Returns:

  • (Integer)

    Maximum number of bytes for each blob written to



47
48
49
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 47

def max_chunk_size_in_bytes
  @max_chunk_size_in_bytes
end

#nameString

only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types.

Returns:

  • (String)

    The name that identifies this endpoint. The name can



23
24
25
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 23

def name
  @name
end

#resource_groupString

Returns The name of the resource group of the storage account.

Returns:

  • (String)

    The name of the resource group of the storage account.



29
30
31
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 29

def resource_group
  @resource_group
end

#subscription_idString

Returns The subscription identifier of the storage account.

Returns:

  • (String)

    The subscription identifier of the storage account.



26
27
28
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 26

def subscription_id
  @subscription_id
end

Class Method Details

.mapperObject

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



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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/2018-12-01-preview/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb', line 59

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RoutingStorageContainerProperties',
    type: {
      name: 'Composite',
      class_name: 'RoutingStorageContainerProperties',
      model_properties: {
        connection_string: {
          client_side_validation: true,
          required: true,
          serialized_name: 'connectionString',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          constraints: {
            Pattern: '^[A-Za-z0-9-._]{1,64}$'
          },
          type: {
            name: 'String'
          }
        },
        subscription_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'subscriptionId',
          type: {
            name: 'String'
          }
        },
        resource_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceGroup',
          type: {
            name: 'String'
          }
        },
        container_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'containerName',
          type: {
            name: 'String'
          }
        },
        file_name_format: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fileNameFormat',
          type: {
            name: 'String'
          }
        },
        batch_frequency_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'batchFrequencyInSeconds',
          constraints: {
            InclusiveMaximum: 720,
            InclusiveMinimum: 60
          },
          type: {
            name: 'Number'
          }
        },
        max_chunk_size_in_bytes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxChunkSizeInBytes',
          constraints: {
            InclusiveMaximum: 524288000,
            InclusiveMinimum: 10485760
          },
          type: {
            name: 'Number'
          }
        },
        encoding: {
          client_side_validation: true,
          required: false,
          serialized_name: 'encoding',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end