...

Source file src/github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2018-01-22/iothub/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2018-01-22/iothub

     1  package iothub
     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  // AccessRightsDescription enumerates the values for access rights description.
    10  type AccessRightsDescription string
    11  
    12  const (
    13  	// DeviceConnect ...
    14  	DeviceConnect AccessRightsDescription = "DeviceConnect"
    15  	// EnrollmentRead ...
    16  	EnrollmentRead AccessRightsDescription = "EnrollmentRead"
    17  	// EnrollmentWrite ...
    18  	EnrollmentWrite AccessRightsDescription = "EnrollmentWrite"
    19  	// RegistrationStatusRead ...
    20  	RegistrationStatusRead AccessRightsDescription = "RegistrationStatusRead"
    21  	// RegistrationStatusWrite ...
    22  	RegistrationStatusWrite AccessRightsDescription = "RegistrationStatusWrite"
    23  	// ServiceConfig ...
    24  	ServiceConfig AccessRightsDescription = "ServiceConfig"
    25  )
    26  
    27  // PossibleAccessRightsDescriptionValues returns an array of possible values for the AccessRightsDescription const type.
    28  func PossibleAccessRightsDescriptionValues() []AccessRightsDescription {
    29  	return []AccessRightsDescription{DeviceConnect, EnrollmentRead, EnrollmentWrite, RegistrationStatusRead, RegistrationStatusWrite, ServiceConfig}
    30  }
    31  
    32  // AllocationPolicy enumerates the values for allocation policy.
    33  type AllocationPolicy string
    34  
    35  const (
    36  	// GeoLatency ...
    37  	GeoLatency AllocationPolicy = "GeoLatency"
    38  	// Hashed ...
    39  	Hashed AllocationPolicy = "Hashed"
    40  	// Static ...
    41  	Static AllocationPolicy = "Static"
    42  )
    43  
    44  // PossibleAllocationPolicyValues returns an array of possible values for the AllocationPolicy const type.
    45  func PossibleAllocationPolicyValues() []AllocationPolicy {
    46  	return []AllocationPolicy{GeoLatency, Hashed, Static}
    47  }
    48  
    49  // CertificatePurpose enumerates the values for certificate purpose.
    50  type CertificatePurpose string
    51  
    52  const (
    53  	// ClientAuthentication ...
    54  	ClientAuthentication CertificatePurpose = "clientAuthentication"
    55  	// ServerAuthentication ...
    56  	ServerAuthentication CertificatePurpose = "serverAuthentication"
    57  )
    58  
    59  // PossibleCertificatePurposeValues returns an array of possible values for the CertificatePurpose const type.
    60  func PossibleCertificatePurposeValues() []CertificatePurpose {
    61  	return []CertificatePurpose{ClientAuthentication, ServerAuthentication}
    62  }
    63  
    64  // IotDpsSku enumerates the values for iot dps sku.
    65  type IotDpsSku string
    66  
    67  const (
    68  	// S1 ...
    69  	S1 IotDpsSku = "S1"
    70  )
    71  
    72  // PossibleIotDpsSkuValues returns an array of possible values for the IotDpsSku const type.
    73  func PossibleIotDpsSkuValues() []IotDpsSku {
    74  	return []IotDpsSku{S1}
    75  }
    76  
    77  // NameUnavailabilityReason enumerates the values for name unavailability reason.
    78  type NameUnavailabilityReason string
    79  
    80  const (
    81  	// AlreadyExists ...
    82  	AlreadyExists NameUnavailabilityReason = "AlreadyExists"
    83  	// Invalid ...
    84  	Invalid NameUnavailabilityReason = "Invalid"
    85  )
    86  
    87  // PossibleNameUnavailabilityReasonValues returns an array of possible values for the NameUnavailabilityReason const type.
    88  func PossibleNameUnavailabilityReasonValues() []NameUnavailabilityReason {
    89  	return []NameUnavailabilityReason{AlreadyExists, Invalid}
    90  }
    91  
    92  // State enumerates the values for state.
    93  type State string
    94  
    95  const (
    96  	// Activating ...
    97  	Activating State = "Activating"
    98  	// ActivationFailed ...
    99  	ActivationFailed State = "ActivationFailed"
   100  	// Active ...
   101  	Active State = "Active"
   102  	// Deleted ...
   103  	Deleted State = "Deleted"
   104  	// Deleting ...
   105  	Deleting State = "Deleting"
   106  	// DeletionFailed ...
   107  	DeletionFailed State = "DeletionFailed"
   108  	// FailingOver ...
   109  	FailingOver State = "FailingOver"
   110  	// FailoverFailed ...
   111  	FailoverFailed State = "FailoverFailed"
   112  	// Resuming ...
   113  	Resuming State = "Resuming"
   114  	// Suspended ...
   115  	Suspended State = "Suspended"
   116  	// Suspending ...
   117  	Suspending State = "Suspending"
   118  	// Transitioning ...
   119  	Transitioning State = "Transitioning"
   120  )
   121  
   122  // PossibleStateValues returns an array of possible values for the State const type.
   123  func PossibleStateValues() []State {
   124  	return []State{Activating, ActivationFailed, Active, Deleted, Deleting, DeletionFailed, FailingOver, FailoverFailed, Resuming, Suspended, Suspending, Transitioning}
   125  }
   126  

View as plain text