...

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

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

     1  package policy
     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  // Mode enumerates the values for mode.
    10  type Mode string
    11  
    12  const (
    13  	// All ...
    14  	All Mode = "All"
    15  	// Indexed ...
    16  	Indexed Mode = "Indexed"
    17  	// NotSpecified ...
    18  	NotSpecified Mode = "NotSpecified"
    19  )
    20  
    21  // PossibleModeValues returns an array of possible values for the Mode const type.
    22  func PossibleModeValues() []Mode {
    23  	return []Mode{All, Indexed, NotSpecified}
    24  }
    25  
    26  // ResourceIdentityType enumerates the values for resource identity type.
    27  type ResourceIdentityType string
    28  
    29  const (
    30  	// None ...
    31  	None ResourceIdentityType = "None"
    32  	// SystemAssigned ...
    33  	SystemAssigned ResourceIdentityType = "SystemAssigned"
    34  )
    35  
    36  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
    37  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
    38  	return []ResourceIdentityType{None, SystemAssigned}
    39  }
    40  
    41  // Type enumerates the values for type.
    42  type Type string
    43  
    44  const (
    45  	// TypeBuiltIn ...
    46  	TypeBuiltIn Type = "BuiltIn"
    47  	// TypeCustom ...
    48  	TypeCustom Type = "Custom"
    49  	// TypeNotSpecified ...
    50  	TypeNotSpecified Type = "NotSpecified"
    51  )
    52  
    53  // PossibleTypeValues returns an array of possible values for the Type const type.
    54  func PossibleTypeValues() []Type {
    55  	return []Type{TypeBuiltIn, TypeCustom, TypeNotSpecified}
    56  }
    57  

View as plain text