...

Source file src/github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2016-02-03/devices/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2016-02-03/devices

     1  package devices
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // AccessRights enumerates the values for access rights.
    10  type AccessRights string
    11  
    12  const (
    13  	// DeviceConnect ...
    14  	DeviceConnect AccessRights = "DeviceConnect"
    15  	// RegistryRead ...
    16  	RegistryRead AccessRights = "RegistryRead"
    17  	// RegistryReadDeviceConnect ...
    18  	RegistryReadDeviceConnect AccessRights = "RegistryRead, DeviceConnect"
    19  	// RegistryReadRegistryWrite ...
    20  	RegistryReadRegistryWrite AccessRights = "RegistryRead, RegistryWrite"
    21  	// RegistryReadRegistryWriteDeviceConnect ...
    22  	RegistryReadRegistryWriteDeviceConnect AccessRights = "RegistryRead, RegistryWrite, DeviceConnect"
    23  	// RegistryReadRegistryWriteServiceConnect ...
    24  	RegistryReadRegistryWriteServiceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect"
    25  	// RegistryReadRegistryWriteServiceConnectDeviceConnect ...
    26  	RegistryReadRegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
    27  	// RegistryReadServiceConnect ...
    28  	RegistryReadServiceConnect AccessRights = "RegistryRead, ServiceConnect"
    29  	// RegistryReadServiceConnectDeviceConnect ...
    30  	RegistryReadServiceConnectDeviceConnect AccessRights = "RegistryRead, ServiceConnect, DeviceConnect"
    31  	// RegistryWrite ...
    32  	RegistryWrite AccessRights = "RegistryWrite"
    33  	// RegistryWriteDeviceConnect ...
    34  	RegistryWriteDeviceConnect AccessRights = "RegistryWrite, DeviceConnect"
    35  	// RegistryWriteServiceConnect ...
    36  	RegistryWriteServiceConnect AccessRights = "RegistryWrite, ServiceConnect"
    37  	// RegistryWriteServiceConnectDeviceConnect ...
    38  	RegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryWrite, ServiceConnect, DeviceConnect"
    39  	// ServiceConnect ...
    40  	ServiceConnect AccessRights = "ServiceConnect"
    41  	// ServiceConnectDeviceConnect ...
    42  	ServiceConnectDeviceConnect AccessRights = "ServiceConnect, DeviceConnect"
    43  )
    44  
    45  // PossibleAccessRightsValues returns an array of possible values for the AccessRights const type.
    46  func PossibleAccessRightsValues() []AccessRights {
    47  	return []AccessRights{DeviceConnect, RegistryRead, RegistryReadDeviceConnect, RegistryReadRegistryWrite, RegistryReadRegistryWriteDeviceConnect, RegistryReadRegistryWriteServiceConnect, RegistryReadRegistryWriteServiceConnectDeviceConnect, RegistryReadServiceConnect, RegistryReadServiceConnectDeviceConnect, RegistryWrite, RegistryWriteDeviceConnect, RegistryWriteServiceConnect, RegistryWriteServiceConnectDeviceConnect, ServiceConnect, ServiceConnectDeviceConnect}
    48  }
    49  
    50  // Capabilities enumerates the values for capabilities.
    51  type Capabilities string
    52  
    53  const (
    54  	// DeviceManagement ...
    55  	DeviceManagement Capabilities = "DeviceManagement"
    56  	// None ...
    57  	None Capabilities = "None"
    58  )
    59  
    60  // PossibleCapabilitiesValues returns an array of possible values for the Capabilities const type.
    61  func PossibleCapabilitiesValues() []Capabilities {
    62  	return []Capabilities{DeviceManagement, None}
    63  }
    64  
    65  // IotHubNameUnavailabilityReason enumerates the values for iot hub name unavailability reason.
    66  type IotHubNameUnavailabilityReason string
    67  
    68  const (
    69  	// AlreadyExists ...
    70  	AlreadyExists IotHubNameUnavailabilityReason = "AlreadyExists"
    71  	// Invalid ...
    72  	Invalid IotHubNameUnavailabilityReason = "Invalid"
    73  )
    74  
    75  // PossibleIotHubNameUnavailabilityReasonValues returns an array of possible values for the IotHubNameUnavailabilityReason const type.
    76  func PossibleIotHubNameUnavailabilityReasonValues() []IotHubNameUnavailabilityReason {
    77  	return []IotHubNameUnavailabilityReason{AlreadyExists, Invalid}
    78  }
    79  
    80  // IotHubScaleType enumerates the values for iot hub scale type.
    81  type IotHubScaleType string
    82  
    83  const (
    84  	// IotHubScaleTypeAutomatic ...
    85  	IotHubScaleTypeAutomatic IotHubScaleType = "Automatic"
    86  	// IotHubScaleTypeManual ...
    87  	IotHubScaleTypeManual IotHubScaleType = "Manual"
    88  	// IotHubScaleTypeNone ...
    89  	IotHubScaleTypeNone IotHubScaleType = "None"
    90  )
    91  
    92  // PossibleIotHubScaleTypeValues returns an array of possible values for the IotHubScaleType const type.
    93  func PossibleIotHubScaleTypeValues() []IotHubScaleType {
    94  	return []IotHubScaleType{IotHubScaleTypeAutomatic, IotHubScaleTypeManual, IotHubScaleTypeNone}
    95  }
    96  
    97  // IotHubSku enumerates the values for iot hub sku.
    98  type IotHubSku string
    99  
   100  const (
   101  	// F1 ...
   102  	F1 IotHubSku = "F1"
   103  	// S1 ...
   104  	S1 IotHubSku = "S1"
   105  	// S2 ...
   106  	S2 IotHubSku = "S2"
   107  	// S3 ...
   108  	S3 IotHubSku = "S3"
   109  )
   110  
   111  // PossibleIotHubSkuValues returns an array of possible values for the IotHubSku const type.
   112  func PossibleIotHubSkuValues() []IotHubSku {
   113  	return []IotHubSku{F1, S1, S2, S3}
   114  }
   115  
   116  // IotHubSkuTier enumerates the values for iot hub sku tier.
   117  type IotHubSkuTier string
   118  
   119  const (
   120  	// Free ...
   121  	Free IotHubSkuTier = "Free"
   122  	// Standard ...
   123  	Standard IotHubSkuTier = "Standard"
   124  )
   125  
   126  // PossibleIotHubSkuTierValues returns an array of possible values for the IotHubSkuTier const type.
   127  func PossibleIotHubSkuTierValues() []IotHubSkuTier {
   128  	return []IotHubSkuTier{Free, Standard}
   129  }
   130  
   131  // IPFilterActionType enumerates the values for ip filter action type.
   132  type IPFilterActionType string
   133  
   134  const (
   135  	// Accept ...
   136  	Accept IPFilterActionType = "Accept"
   137  	// Reject ...
   138  	Reject IPFilterActionType = "Reject"
   139  )
   140  
   141  // PossibleIPFilterActionTypeValues returns an array of possible values for the IPFilterActionType const type.
   142  func PossibleIPFilterActionTypeValues() []IPFilterActionType {
   143  	return []IPFilterActionType{Accept, Reject}
   144  }
   145  
   146  // JobStatus enumerates the values for job status.
   147  type JobStatus string
   148  
   149  const (
   150  	// Cancelled ...
   151  	Cancelled JobStatus = "cancelled"
   152  	// Completed ...
   153  	Completed JobStatus = "completed"
   154  	// Enqueued ...
   155  	Enqueued JobStatus = "enqueued"
   156  	// Failed ...
   157  	Failed JobStatus = "failed"
   158  	// Running ...
   159  	Running JobStatus = "running"
   160  	// Unknown ...
   161  	Unknown JobStatus = "unknown"
   162  )
   163  
   164  // PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
   165  func PossibleJobStatusValues() []JobStatus {
   166  	return []JobStatus{Cancelled, Completed, Enqueued, Failed, Running, Unknown}
   167  }
   168  
   169  // JobType enumerates the values for job type.
   170  type JobType string
   171  
   172  const (
   173  	// JobTypeBackup ...
   174  	JobTypeBackup JobType = "backup"
   175  	// JobTypeExport ...
   176  	JobTypeExport JobType = "export"
   177  	// JobTypeFactoryResetDevice ...
   178  	JobTypeFactoryResetDevice JobType = "factoryResetDevice"
   179  	// JobTypeFirmwareUpdate ...
   180  	JobTypeFirmwareUpdate JobType = "firmwareUpdate"
   181  	// JobTypeImport ...
   182  	JobTypeImport JobType = "import"
   183  	// JobTypeReadDeviceProperties ...
   184  	JobTypeReadDeviceProperties JobType = "readDeviceProperties"
   185  	// JobTypeRebootDevice ...
   186  	JobTypeRebootDevice JobType = "rebootDevice"
   187  	// JobTypeUnknown ...
   188  	JobTypeUnknown JobType = "unknown"
   189  	// JobTypeUpdateDeviceConfiguration ...
   190  	JobTypeUpdateDeviceConfiguration JobType = "updateDeviceConfiguration"
   191  	// JobTypeWriteDeviceProperties ...
   192  	JobTypeWriteDeviceProperties JobType = "writeDeviceProperties"
   193  )
   194  
   195  // PossibleJobTypeValues returns an array of possible values for the JobType const type.
   196  func PossibleJobTypeValues() []JobType {
   197  	return []JobType{JobTypeBackup, JobTypeExport, JobTypeFactoryResetDevice, JobTypeFirmwareUpdate, JobTypeImport, JobTypeReadDeviceProperties, JobTypeRebootDevice, JobTypeUnknown, JobTypeUpdateDeviceConfiguration, JobTypeWriteDeviceProperties}
   198  }
   199  
   200  // OperationMonitoringLevel enumerates the values for operation monitoring level.
   201  type OperationMonitoringLevel string
   202  
   203  const (
   204  	// OperationMonitoringLevelError ...
   205  	OperationMonitoringLevelError OperationMonitoringLevel = "Error"
   206  	// OperationMonitoringLevelErrorInformation ...
   207  	OperationMonitoringLevelErrorInformation OperationMonitoringLevel = "Error, Information"
   208  	// OperationMonitoringLevelInformation ...
   209  	OperationMonitoringLevelInformation OperationMonitoringLevel = "Information"
   210  	// OperationMonitoringLevelNone ...
   211  	OperationMonitoringLevelNone OperationMonitoringLevel = "None"
   212  )
   213  
   214  // PossibleOperationMonitoringLevelValues returns an array of possible values for the OperationMonitoringLevel const type.
   215  func PossibleOperationMonitoringLevelValues() []OperationMonitoringLevel {
   216  	return []OperationMonitoringLevel{OperationMonitoringLevelError, OperationMonitoringLevelErrorInformation, OperationMonitoringLevelInformation, OperationMonitoringLevelNone}
   217  }
   218  

View as plain text