...

Source file src/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-05-01/locks/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-05-01/locks

     1  package locks
     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  // CreatedByType enumerates the values for created by type.
    10  type CreatedByType string
    11  
    12  const (
    13  	// Application ...
    14  	Application CreatedByType = "Application"
    15  	// Key ...
    16  	Key CreatedByType = "Key"
    17  	// ManagedIdentity ...
    18  	ManagedIdentity CreatedByType = "ManagedIdentity"
    19  	// User ...
    20  	User CreatedByType = "User"
    21  )
    22  
    23  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    24  func PossibleCreatedByTypeValues() []CreatedByType {
    25  	return []CreatedByType{Application, Key, ManagedIdentity, User}
    26  }
    27  
    28  // LockLevel enumerates the values for lock level.
    29  type LockLevel string
    30  
    31  const (
    32  	// CanNotDelete ...
    33  	CanNotDelete LockLevel = "CanNotDelete"
    34  	// NotSpecified ...
    35  	NotSpecified LockLevel = "NotSpecified"
    36  	// ReadOnly ...
    37  	ReadOnly LockLevel = "ReadOnly"
    38  )
    39  
    40  // PossibleLockLevelValues returns an array of possible values for the LockLevel const type.
    41  func PossibleLockLevelValues() []LockLevel {
    42  	return []LockLevel{CanNotDelete, NotSpecified, ReadOnly}
    43  }
    44  

View as plain text