...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-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  // EnforcementMode enumerates the values for enforcement mode.
    10  type EnforcementMode string
    11  
    12  const (
    13  	// Default The policy effect is enforced during resource creation or update.
    14  	Default EnforcementMode = "Default"
    15  	// DoNotEnforce The policy effect is not enforced during resource creation or update.
    16  	DoNotEnforce EnforcementMode = "DoNotEnforce"
    17  )
    18  
    19  // PossibleEnforcementModeValues returns an array of possible values for the EnforcementMode const type.
    20  func PossibleEnforcementModeValues() []EnforcementMode {
    21  	return []EnforcementMode{Default, DoNotEnforce}
    22  }
    23  
    24  // ResourceIdentityType enumerates the values for resource identity type.
    25  type ResourceIdentityType string
    26  
    27  const (
    28  	// None ...
    29  	None ResourceIdentityType = "None"
    30  	// SystemAssigned ...
    31  	SystemAssigned ResourceIdentityType = "SystemAssigned"
    32  )
    33  
    34  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
    35  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
    36  	return []ResourceIdentityType{None, SystemAssigned}
    37  }
    38  
    39  // Type enumerates the values for type.
    40  type Type string
    41  
    42  const (
    43  	// BuiltIn ...
    44  	BuiltIn Type = "BuiltIn"
    45  	// Custom ...
    46  	Custom Type = "Custom"
    47  	// NotSpecified ...
    48  	NotSpecified Type = "NotSpecified"
    49  )
    50  
    51  // PossibleTypeValues returns an array of possible values for the Type const type.
    52  func PossibleTypeValues() []Type {
    53  	return []Type{BuiltIn, Custom, NotSpecified}
    54  }
    55  

View as plain text