Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the StorageEndpointProperties class.
 /// </summary>
 /// <param name="connectionString">The connection string for the Azure
 /// Storage account to which files are uploaded.</param>
 /// <param name="containerName">The name of the root container where
 /// you upload files. The container need not exist but should be
 /// creatable using the connectionString specified.</param>
 /// <param name="sasTtlAsIso8601">The period of time for which the SAS
 /// URI generated by IoT Hub for file upload is valid. See:
 /// https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.</param>
 /// <param name="authenticationType">Specifies authentication type
 /// being used for connecting to the storage account. Possible values
 /// include: 'keyBased', 'identityBased'</param>
 /// <param name="identity">Managed identity properties of storage
 /// endpoint for file upload.</param>
 public StorageEndpointProperties(string connectionString, string containerName, System.TimeSpan?sasTtlAsIso8601 = default(System.TimeSpan?), string authenticationType = default(string), ManagedIdentity identity = default(ManagedIdentity))
 {
     SasTtlAsIso8601    = sasTtlAsIso8601;
     ConnectionString   = connectionString;
     ContainerName      = containerName;
     AuthenticationType = authenticationType;
     Identity           = identity;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the ExportDevicesRequest class.
 /// </summary>
 /// <param name="exportBlobContainerUri">The export blob container
 /// URI.</param>
 /// <param name="excludeKeys">The value indicating whether keys should
 /// be excluded during export.</param>
 /// <param name="exportBlobName">The name of the blob that will be
 /// created in the provided output blob container. This blob will
 /// contain the exported device registry information for the IoT
 /// Hub.</param>
 /// <param name="authenticationType">Specifies authentication type
 /// being used for connecting to the storage account. Possible values
 /// include: 'keyBased', 'identityBased'</param>
 /// <param name="identity">Managed identity properties of storage
 /// endpoint for export devices.</param>
 /// <param name="includeConfigurations">The value indicating whether
 /// configurations should be exported.</param>
 /// <param name="configurationsBlobName">The name of the blob that will
 /// be created in the provided output blob container. This blob will
 /// contain the exported configurations for the Iot Hub.</param>
 public ExportDevicesRequest(string exportBlobContainerUri, bool excludeKeys, string exportBlobName = default(string), string authenticationType = default(string), ManagedIdentity identity = default(ManagedIdentity), bool?includeConfigurations = default(bool?), string configurationsBlobName = default(string))
 {
     ExportBlobContainerUri = exportBlobContainerUri;
     ExcludeKeys            = excludeKeys;
     ExportBlobName         = exportBlobName;
     AuthenticationType     = authenticationType;
     Identity = identity;
     IncludeConfigurations  = includeConfigurations;
     ConfigurationsBlobName = configurationsBlobName;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ImportDevicesRequest class.
 /// </summary>
 /// <param name="inputBlobContainerUri">The input blob container
 /// URI.</param>
 /// <param name="outputBlobContainerUri">The output blob container
 /// URI.</param>
 /// <param name="inputBlobName">The blob name to be used when importing
 /// from the provided input blob container.</param>
 /// <param name="outputBlobName">The blob name to use for storing the
 /// status of the import job.</param>
 /// <param name="authenticationType">Specifies authentication type
 /// being used for connecting to the storage account. Possible values
 /// include: 'keyBased', 'identityBased'</param>
 /// <param name="identity">Managed identity properties of storage
 /// endpoint for import devices.</param>
 /// <param name="includeConfigurations">The value indicating whether
 /// configurations should be imported.</param>
 /// <param name="configurationsBlobName">The blob name to be used when
 /// importing configurations from the provided input blob
 /// container.</param>
 public ImportDevicesRequest(string inputBlobContainerUri, string outputBlobContainerUri, string inputBlobName = default(string), string outputBlobName = default(string), string authenticationType = default(string), ManagedIdentity identity = default(ManagedIdentity), bool?includeConfigurations = default(bool?), string configurationsBlobName = default(string))
 {
     InputBlobContainerUri  = inputBlobContainerUri;
     OutputBlobContainerUri = outputBlobContainerUri;
     InputBlobName          = inputBlobName;
     OutputBlobName         = outputBlobName;
     AuthenticationType     = authenticationType;
     Identity = identity;
     IncludeConfigurations  = includeConfigurations;
     ConfigurationsBlobName = configurationsBlobName;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RoutingEventHubProperties class.
 /// </summary>
 /// <param name="name">The name that identifies this endpoint. The name
 /// can 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.</param>
 /// <param name="id">Id of the event hub endpoint</param>
 /// <param name="connectionString">The connection string of the event
 /// hub endpoint. </param>
 /// <param name="endpointUri">The url of the event hub endpoint. It
 /// must include the protocol sb://</param>
 /// <param name="entityPath">Event hub name on the event hub
 /// namespace</param>
 /// <param name="authenticationType">Method used to authenticate
 /// against the event hub endpoint. Possible values include:
 /// 'keyBased', 'identityBased'</param>
 /// <param name="identity">Managed identity properties of routing event
 /// hub endpoint.</param>
 /// <param name="subscriptionId">The subscription identifier of the
 /// event hub endpoint.</param>
 /// <param name="resourceGroup">The name of the resource group of the
 /// event hub endpoint.</param>
 public RoutingEventHubProperties(string name, string id = default(string), string connectionString = default(string), string endpointUri = default(string), string entityPath = default(string), string authenticationType = default(string), ManagedIdentity identity = default(ManagedIdentity), string subscriptionId = default(string), string resourceGroup = default(string))
 {
     Id = id;
     ConnectionString   = connectionString;
     EndpointUri        = endpointUri;
     EntityPath         = entityPath;
     AuthenticationType = authenticationType;
     Identity           = identity;
     Name           = name;
     SubscriptionId = subscriptionId;
     ResourceGroup  = resourceGroup;
     CustomInit();
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the RoutingStorageContainerProperties
 /// class.
 /// </summary>
 /// <param name="name">The name that identifies this endpoint. The name
 /// can 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.</param>
 /// <param name="containerName">The name of storage container in the
 /// storage account.</param>
 /// <param name="id">Id of the storage container endpoint</param>
 /// <param name="connectionString">The connection string of the storage
 /// account.</param>
 /// <param name="endpointUri">The url of the storage endpoint. It must
 /// include the protocol https://</param>
 /// <param name="authenticationType">Method used to authenticate
 /// against the storage endpoint. Possible values include: 'keyBased',
 /// 'identityBased'</param>
 /// <param name="identity">Managed identity properties of routing
 /// storage endpoint.</param>
 /// <param name="subscriptionId">The subscription identifier of the
 /// storage account.</param>
 /// <param name="resourceGroup">The name of the resource group of the
 /// storage account.</param>
 /// <param name="fileNameFormat">File name format for the blob. Default
 /// format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All
 /// parameters are mandatory but can be reordered.</param>
 /// <param name="batchFrequencyInSeconds">Time interval at which blobs
 /// are written to storage. Value should be between 60 and 720 seconds.
 /// Default value is 300 seconds.</param>
 /// <param name="maxChunkSizeInBytes">Maximum number of bytes for each
 /// blob written to storage. Value should be between 10485760(10MB) and
 /// 524288000(500MB). Default value is 314572800(300MB).</param>
 /// <param name="encoding">Encoding that is used to serialize messages
 /// to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'.
 /// Default value is 'avro'. Possible values include: 'Avro',
 /// 'AvroDeflate', 'JSON'</param>
 public RoutingStorageContainerProperties(string name, string containerName, string id = default(string), string connectionString = default(string), string endpointUri = default(string), string authenticationType = default(string), ManagedIdentity identity = default(ManagedIdentity), string subscriptionId = default(string), string resourceGroup = default(string), string fileNameFormat = default(string), int?batchFrequencyInSeconds = default(int?), int?maxChunkSizeInBytes = default(int?), string encoding = default(string))
 {
     Id = id;
     ConnectionString   = connectionString;
     EndpointUri        = endpointUri;
     AuthenticationType = authenticationType;
     Identity           = identity;
     Name                    = name;
     SubscriptionId          = subscriptionId;
     ResourceGroup           = resourceGroup;
     ContainerName           = containerName;
     FileNameFormat          = fileNameFormat;
     BatchFrequencyInSeconds = batchFrequencyInSeconds;
     MaxChunkSizeInBytes     = maxChunkSizeInBytes;
     Encoding                = encoding;
     CustomInit();
 }