...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-07-01/features

     1  package features
     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  // ChangeType enumerates the values for change type.
    10  type ChangeType string
    11  
    12  const (
    13  	// Create The resource does not exist in the current state but is present in the desired state. The
    14  	// resource will be created when the deployment is executed.
    15  	Create ChangeType = "Create"
    16  	// Delete The resource exists in the current state and is missing from the desired state. The resource will
    17  	// be deleted when the deployment is executed.
    18  	Delete ChangeType = "Delete"
    19  	// Deploy The resource exists in the current state and the desired state and will be redeployed when the
    20  	// deployment is executed. The properties of the resource may or may not change.
    21  	Deploy ChangeType = "Deploy"
    22  	// Ignore The resource exists in the current state and is missing from the desired state. The resource will
    23  	// not be deployed or modified when the deployment is executed.
    24  	Ignore ChangeType = "Ignore"
    25  	// Modify The resource exists in the current state and the desired state and will be redeployed when the
    26  	// deployment is executed. The properties of the resource will change.
    27  	Modify ChangeType = "Modify"
    28  	// NoChange The resource exists in the current state and the desired state and will be redeployed when the
    29  	// deployment is executed. The properties of the resource will not change.
    30  	NoChange ChangeType = "NoChange"
    31  )
    32  
    33  // PossibleChangeTypeValues returns an array of possible values for the ChangeType const type.
    34  func PossibleChangeTypeValues() []ChangeType {
    35  	return []ChangeType{Create, Delete, Deploy, Ignore, Modify, NoChange}
    36  }
    37  
    38  // DeploymentMode enumerates the values for deployment mode.
    39  type DeploymentMode string
    40  
    41  const (
    42  	// Complete ...
    43  	Complete DeploymentMode = "Complete"
    44  	// Incremental ...
    45  	Incremental DeploymentMode = "Incremental"
    46  )
    47  
    48  // PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type.
    49  func PossibleDeploymentModeValues() []DeploymentMode {
    50  	return []DeploymentMode{Complete, Incremental}
    51  }
    52  
    53  // OnErrorDeploymentType enumerates the values for on error deployment type.
    54  type OnErrorDeploymentType string
    55  
    56  const (
    57  	// LastSuccessful ...
    58  	LastSuccessful OnErrorDeploymentType = "LastSuccessful"
    59  	// SpecificDeployment ...
    60  	SpecificDeployment OnErrorDeploymentType = "SpecificDeployment"
    61  )
    62  
    63  // PossibleOnErrorDeploymentTypeValues returns an array of possible values for the OnErrorDeploymentType const type.
    64  func PossibleOnErrorDeploymentTypeValues() []OnErrorDeploymentType {
    65  	return []OnErrorDeploymentType{LastSuccessful, SpecificDeployment}
    66  }
    67  
    68  // PropertyChangeType enumerates the values for property change type.
    69  type PropertyChangeType string
    70  
    71  const (
    72  	// PropertyChangeTypeArray The property is an array and contains nested changes.
    73  	PropertyChangeTypeArray PropertyChangeType = "Array"
    74  	// PropertyChangeTypeCreate The property does not exist in the current state but is present in the desired
    75  	// state. The property will be created when the deployment is executed.
    76  	PropertyChangeTypeCreate PropertyChangeType = "Create"
    77  	// PropertyChangeTypeDelete The property exists in the current state and is missing from the desired state.
    78  	// It will be deleted when the deployment is executed.
    79  	PropertyChangeTypeDelete PropertyChangeType = "Delete"
    80  	// PropertyChangeTypeModify The property exists in both current and desired state and is different. The
    81  	// value of the property will change when the deployment is executed.
    82  	PropertyChangeTypeModify PropertyChangeType = "Modify"
    83  )
    84  
    85  // PossiblePropertyChangeTypeValues returns an array of possible values for the PropertyChangeType const type.
    86  func PossiblePropertyChangeTypeValues() []PropertyChangeType {
    87  	return []PropertyChangeType{PropertyChangeTypeArray, PropertyChangeTypeCreate, PropertyChangeTypeDelete, PropertyChangeTypeModify}
    88  }
    89  
    90  // ResourceIdentityType enumerates the values for resource identity type.
    91  type ResourceIdentityType string
    92  
    93  const (
    94  	// None ...
    95  	None ResourceIdentityType = "None"
    96  	// SystemAssigned ...
    97  	SystemAssigned ResourceIdentityType = "SystemAssigned"
    98  	// SystemAssignedUserAssigned ...
    99  	SystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
   100  	// UserAssigned ...
   101  	UserAssigned ResourceIdentityType = "UserAssigned"
   102  )
   103  
   104  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
   105  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
   106  	return []ResourceIdentityType{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}
   107  }
   108  
   109  // WhatIfResultFormat enumerates the values for what if result format.
   110  type WhatIfResultFormat string
   111  
   112  const (
   113  	// FullResourcePayloads ...
   114  	FullResourcePayloads WhatIfResultFormat = "FullResourcePayloads"
   115  	// ResourceIDOnly ...
   116  	ResourceIDOnly WhatIfResultFormat = "ResourceIdOnly"
   117  )
   118  
   119  // PossibleWhatIfResultFormatValues returns an array of possible values for the WhatIfResultFormat const type.
   120  func PossibleWhatIfResultFormatValues() []WhatIfResultFormat {
   121  	return []WhatIfResultFormat{FullResourcePayloads, ResourceIDOnly}
   122  }
   123  

View as plain text