...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2020-03-01-preview/policy/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2020-03-01-preview/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  // 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  // EnforcementMode enumerates the values for enforcement mode.
    29  type EnforcementMode string
    30  
    31  const (
    32  	// Default The policy effect is enforced during resource creation or update.
    33  	Default EnforcementMode = "Default"
    34  	// DoNotEnforce The policy effect is not enforced during resource creation or update.
    35  	DoNotEnforce EnforcementMode = "DoNotEnforce"
    36  )
    37  
    38  // PossibleEnforcementModeValues returns an array of possible values for the EnforcementMode const type.
    39  func PossibleEnforcementModeValues() []EnforcementMode {
    40  	return []EnforcementMode{Default, DoNotEnforce}
    41  }
    42  
    43  // ExemptionCategory enumerates the values for exemption category.
    44  type ExemptionCategory string
    45  
    46  const (
    47  	// Mitigated This category of exemptions usually means the mitigation actions have been applied to the
    48  	// scope.
    49  	Mitigated ExemptionCategory = "Mitigated"
    50  	// Waiver This category of exemptions usually means the scope is not applicable for the policy.
    51  	Waiver ExemptionCategory = "Waiver"
    52  )
    53  
    54  // PossibleExemptionCategoryValues returns an array of possible values for the ExemptionCategory const type.
    55  func PossibleExemptionCategoryValues() []ExemptionCategory {
    56  	return []ExemptionCategory{Mitigated, Waiver}
    57  }
    58  
    59  // ParameterType enumerates the values for parameter type.
    60  type ParameterType string
    61  
    62  const (
    63  	// Array ...
    64  	Array ParameterType = "Array"
    65  	// Boolean ...
    66  	Boolean ParameterType = "Boolean"
    67  	// DateTime ...
    68  	DateTime ParameterType = "DateTime"
    69  	// Float ...
    70  	Float ParameterType = "Float"
    71  	// Integer ...
    72  	Integer ParameterType = "Integer"
    73  	// Object ...
    74  	Object ParameterType = "Object"
    75  	// String ...
    76  	String ParameterType = "String"
    77  )
    78  
    79  // PossibleParameterTypeValues returns an array of possible values for the ParameterType const type.
    80  func PossibleParameterTypeValues() []ParameterType {
    81  	return []ParameterType{Array, Boolean, DateTime, Float, Integer, Object, String}
    82  }
    83  
    84  // ResourceIdentityType enumerates the values for resource identity type.
    85  type ResourceIdentityType string
    86  
    87  const (
    88  	// None Indicates that no identity is associated with the resource or that the existing identity should be
    89  	// removed.
    90  	None ResourceIdentityType = "None"
    91  	// SystemAssigned Indicates that a system assigned identity is associated with the resource.
    92  	SystemAssigned ResourceIdentityType = "SystemAssigned"
    93  )
    94  
    95  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
    96  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
    97  	return []ResourceIdentityType{None, SystemAssigned}
    98  }
    99  
   100  // Type enumerates the values for type.
   101  type Type string
   102  
   103  const (
   104  	// BuiltIn ...
   105  	BuiltIn Type = "BuiltIn"
   106  	// Custom ...
   107  	Custom Type = "Custom"
   108  	// NotSpecified ...
   109  	NotSpecified Type = "NotSpecified"
   110  	// Static ...
   111  	Static Type = "Static"
   112  )
   113  
   114  // PossibleTypeValues returns an array of possible values for the Type const type.
   115  func PossibleTypeValues() []Type {
   116  	return []Type{BuiltIn, Custom, NotSpecified, Static}
   117  }
   118  

View as plain text