...

Source file src/github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2022-02-05/iothub/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/provisioningservices/mgmt/2022-02-05/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  	// AccessRightsDescriptionDeviceConnect ...
    14  	AccessRightsDescriptionDeviceConnect AccessRightsDescription = "DeviceConnect"
    15  	// AccessRightsDescriptionEnrollmentRead ...
    16  	AccessRightsDescriptionEnrollmentRead AccessRightsDescription = "EnrollmentRead"
    17  	// AccessRightsDescriptionEnrollmentWrite ...
    18  	AccessRightsDescriptionEnrollmentWrite AccessRightsDescription = "EnrollmentWrite"
    19  	// AccessRightsDescriptionRegistrationStatusRead ...
    20  	AccessRightsDescriptionRegistrationStatusRead AccessRightsDescription = "RegistrationStatusRead"
    21  	// AccessRightsDescriptionRegistrationStatusWrite ...
    22  	AccessRightsDescriptionRegistrationStatusWrite AccessRightsDescription = "RegistrationStatusWrite"
    23  	// AccessRightsDescriptionServiceConfig ...
    24  	AccessRightsDescriptionServiceConfig AccessRightsDescription = "ServiceConfig"
    25  )
    26  
    27  // PossibleAccessRightsDescriptionValues returns an array of possible values for the AccessRightsDescription const type.
    28  func PossibleAccessRightsDescriptionValues() []AccessRightsDescription {
    29  	return []AccessRightsDescription{AccessRightsDescriptionDeviceConnect, AccessRightsDescriptionEnrollmentRead, AccessRightsDescriptionEnrollmentWrite, AccessRightsDescriptionRegistrationStatusRead, AccessRightsDescriptionRegistrationStatusWrite, AccessRightsDescriptionServiceConfig}
    30  }
    31  
    32  // AllocationPolicy enumerates the values for allocation policy.
    33  type AllocationPolicy string
    34  
    35  const (
    36  	// AllocationPolicyGeoLatency ...
    37  	AllocationPolicyGeoLatency AllocationPolicy = "GeoLatency"
    38  	// AllocationPolicyHashed ...
    39  	AllocationPolicyHashed AllocationPolicy = "Hashed"
    40  	// AllocationPolicyStatic ...
    41  	AllocationPolicyStatic AllocationPolicy = "Static"
    42  )
    43  
    44  // PossibleAllocationPolicyValues returns an array of possible values for the AllocationPolicy const type.
    45  func PossibleAllocationPolicyValues() []AllocationPolicy {
    46  	return []AllocationPolicy{AllocationPolicyGeoLatency, AllocationPolicyHashed, AllocationPolicyStatic}
    47  }
    48  
    49  // CertificatePurpose enumerates the values for certificate purpose.
    50  type CertificatePurpose string
    51  
    52  const (
    53  	// CertificatePurposeClientAuthentication ...
    54  	CertificatePurposeClientAuthentication CertificatePurpose = "clientAuthentication"
    55  	// CertificatePurposeServerAuthentication ...
    56  	CertificatePurposeServerAuthentication CertificatePurpose = "serverAuthentication"
    57  )
    58  
    59  // PossibleCertificatePurposeValues returns an array of possible values for the CertificatePurpose const type.
    60  func PossibleCertificatePurposeValues() []CertificatePurpose {
    61  	return []CertificatePurpose{CertificatePurposeClientAuthentication, CertificatePurposeServerAuthentication}
    62  }
    63  
    64  // CreatedByType enumerates the values for created by type.
    65  type CreatedByType string
    66  
    67  const (
    68  	// CreatedByTypeApplication ...
    69  	CreatedByTypeApplication CreatedByType = "Application"
    70  	// CreatedByTypeKey ...
    71  	CreatedByTypeKey CreatedByType = "Key"
    72  	// CreatedByTypeManagedIdentity ...
    73  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    74  	// CreatedByTypeUser ...
    75  	CreatedByTypeUser CreatedByType = "User"
    76  )
    77  
    78  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    79  func PossibleCreatedByTypeValues() []CreatedByType {
    80  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
    81  }
    82  
    83  // IotDpsSku enumerates the values for iot dps sku.
    84  type IotDpsSku string
    85  
    86  const (
    87  	// IotDpsSkuS1 ...
    88  	IotDpsSkuS1 IotDpsSku = "S1"
    89  )
    90  
    91  // PossibleIotDpsSkuValues returns an array of possible values for the IotDpsSku const type.
    92  func PossibleIotDpsSkuValues() []IotDpsSku {
    93  	return []IotDpsSku{IotDpsSkuS1}
    94  }
    95  
    96  // IPFilterActionType enumerates the values for ip filter action type.
    97  type IPFilterActionType string
    98  
    99  const (
   100  	// IPFilterActionTypeAccept ...
   101  	IPFilterActionTypeAccept IPFilterActionType = "Accept"
   102  	// IPFilterActionTypeReject ...
   103  	IPFilterActionTypeReject IPFilterActionType = "Reject"
   104  )
   105  
   106  // PossibleIPFilterActionTypeValues returns an array of possible values for the IPFilterActionType const type.
   107  func PossibleIPFilterActionTypeValues() []IPFilterActionType {
   108  	return []IPFilterActionType{IPFilterActionTypeAccept, IPFilterActionTypeReject}
   109  }
   110  
   111  // IPFilterTargetType enumerates the values for ip filter target type.
   112  type IPFilterTargetType string
   113  
   114  const (
   115  	// IPFilterTargetTypeAll ...
   116  	IPFilterTargetTypeAll IPFilterTargetType = "all"
   117  	// IPFilterTargetTypeDeviceAPI ...
   118  	IPFilterTargetTypeDeviceAPI IPFilterTargetType = "deviceApi"
   119  	// IPFilterTargetTypeServiceAPI ...
   120  	IPFilterTargetTypeServiceAPI IPFilterTargetType = "serviceApi"
   121  )
   122  
   123  // PossibleIPFilterTargetTypeValues returns an array of possible values for the IPFilterTargetType const type.
   124  func PossibleIPFilterTargetTypeValues() []IPFilterTargetType {
   125  	return []IPFilterTargetType{IPFilterTargetTypeAll, IPFilterTargetTypeDeviceAPI, IPFilterTargetTypeServiceAPI}
   126  }
   127  
   128  // NameUnavailabilityReason enumerates the values for name unavailability reason.
   129  type NameUnavailabilityReason string
   130  
   131  const (
   132  	// NameUnavailabilityReasonAlreadyExists ...
   133  	NameUnavailabilityReasonAlreadyExists NameUnavailabilityReason = "AlreadyExists"
   134  	// NameUnavailabilityReasonInvalid ...
   135  	NameUnavailabilityReasonInvalid NameUnavailabilityReason = "Invalid"
   136  )
   137  
   138  // PossibleNameUnavailabilityReasonValues returns an array of possible values for the NameUnavailabilityReason const type.
   139  func PossibleNameUnavailabilityReasonValues() []NameUnavailabilityReason {
   140  	return []NameUnavailabilityReason{NameUnavailabilityReasonAlreadyExists, NameUnavailabilityReasonInvalid}
   141  }
   142  
   143  // PrivateLinkServiceConnectionStatus enumerates the values for private link service connection status.
   144  type PrivateLinkServiceConnectionStatus string
   145  
   146  const (
   147  	// PrivateLinkServiceConnectionStatusApproved ...
   148  	PrivateLinkServiceConnectionStatusApproved PrivateLinkServiceConnectionStatus = "Approved"
   149  	// PrivateLinkServiceConnectionStatusDisconnected ...
   150  	PrivateLinkServiceConnectionStatusDisconnected PrivateLinkServiceConnectionStatus = "Disconnected"
   151  	// PrivateLinkServiceConnectionStatusPending ...
   152  	PrivateLinkServiceConnectionStatusPending PrivateLinkServiceConnectionStatus = "Pending"
   153  	// PrivateLinkServiceConnectionStatusRejected ...
   154  	PrivateLinkServiceConnectionStatusRejected PrivateLinkServiceConnectionStatus = "Rejected"
   155  )
   156  
   157  // PossiblePrivateLinkServiceConnectionStatusValues returns an array of possible values for the PrivateLinkServiceConnectionStatus const type.
   158  func PossiblePrivateLinkServiceConnectionStatusValues() []PrivateLinkServiceConnectionStatus {
   159  	return []PrivateLinkServiceConnectionStatus{PrivateLinkServiceConnectionStatusApproved, PrivateLinkServiceConnectionStatusDisconnected, PrivateLinkServiceConnectionStatusPending, PrivateLinkServiceConnectionStatusRejected}
   160  }
   161  
   162  // PublicNetworkAccess enumerates the values for public network access.
   163  type PublicNetworkAccess string
   164  
   165  const (
   166  	// PublicNetworkAccessDisabled ...
   167  	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
   168  	// PublicNetworkAccessEnabled ...
   169  	PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
   170  )
   171  
   172  // PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
   173  func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
   174  	return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled}
   175  }
   176  
   177  // State enumerates the values for state.
   178  type State string
   179  
   180  const (
   181  	// StateActivating ...
   182  	StateActivating State = "Activating"
   183  	// StateActivationFailed ...
   184  	StateActivationFailed State = "ActivationFailed"
   185  	// StateActive ...
   186  	StateActive State = "Active"
   187  	// StateDeleted ...
   188  	StateDeleted State = "Deleted"
   189  	// StateDeleting ...
   190  	StateDeleting State = "Deleting"
   191  	// StateDeletionFailed ...
   192  	StateDeletionFailed State = "DeletionFailed"
   193  	// StateFailingOver ...
   194  	StateFailingOver State = "FailingOver"
   195  	// StateFailoverFailed ...
   196  	StateFailoverFailed State = "FailoverFailed"
   197  	// StateResuming ...
   198  	StateResuming State = "Resuming"
   199  	// StateSuspended ...
   200  	StateSuspended State = "Suspended"
   201  	// StateSuspending ...
   202  	StateSuspending State = "Suspending"
   203  	// StateTransitioning ...
   204  	StateTransitioning State = "Transitioning"
   205  )
   206  
   207  // PossibleStateValues returns an array of possible values for the State const type.
   208  func PossibleStateValues() []State {
   209  	return []State{StateActivating, StateActivationFailed, StateActive, StateDeleted, StateDeleting, StateDeletionFailed, StateFailingOver, StateFailoverFailed, StateResuming, StateSuspended, StateSuspending, StateTransitioning}
   210  }
   211  

View as plain text