...

Source file src/github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2018-07-01/storagesync/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/storagesync/mgmt/2018-07-01/storagesync

     1  package storagesync
     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  // CloudTiering enumerates the values for cloud tiering.
    10  type CloudTiering string
    11  
    12  const (
    13  	// Off ...
    14  	Off CloudTiering = "off"
    15  	// On ...
    16  	On CloudTiering = "on"
    17  )
    18  
    19  // PossibleCloudTieringValues returns an array of possible values for the CloudTiering const type.
    20  func PossibleCloudTieringValues() []CloudTiering {
    21  	return []CloudTiering{Off, On}
    22  }
    23  
    24  // CloudTiering1 enumerates the values for cloud tiering 1.
    25  type CloudTiering1 string
    26  
    27  const (
    28  	// CloudTiering1Off ...
    29  	CloudTiering1Off CloudTiering1 = "off"
    30  	// CloudTiering1On ...
    31  	CloudTiering1On CloudTiering1 = "on"
    32  )
    33  
    34  // PossibleCloudTiering1Values returns an array of possible values for the CloudTiering1 const type.
    35  func PossibleCloudTiering1Values() []CloudTiering1 {
    36  	return []CloudTiering1{CloudTiering1Off, CloudTiering1On}
    37  }
    38  
    39  // CloudTiering2 enumerates the values for cloud tiering 2.
    40  type CloudTiering2 string
    41  
    42  const (
    43  	// CloudTiering2Off ...
    44  	CloudTiering2Off CloudTiering2 = "off"
    45  	// CloudTiering2On ...
    46  	CloudTiering2On CloudTiering2 = "on"
    47  )
    48  
    49  // PossibleCloudTiering2Values returns an array of possible values for the CloudTiering2 const type.
    50  func PossibleCloudTiering2Values() []CloudTiering2 {
    51  	return []CloudTiering2{CloudTiering2Off, CloudTiering2On}
    52  }
    53  
    54  // NameAvailabilityReason enumerates the values for name availability reason.
    55  type NameAvailabilityReason string
    56  
    57  const (
    58  	// AlreadyExists ...
    59  	AlreadyExists NameAvailabilityReason = "AlreadyExists"
    60  	// Invalid ...
    61  	Invalid NameAvailabilityReason = "Invalid"
    62  )
    63  
    64  // PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
    65  func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
    66  	return []NameAvailabilityReason{AlreadyExists, Invalid}
    67  }
    68  
    69  // Operation enumerates the values for operation.
    70  type Operation string
    71  
    72  const (
    73  	// Cancel ...
    74  	Cancel Operation = "cancel"
    75  	// Do ...
    76  	Do Operation = "do"
    77  	// Undo ...
    78  	Undo Operation = "undo"
    79  )
    80  
    81  // PossibleOperationValues returns an array of possible values for the Operation const type.
    82  func PossibleOperationValues() []Operation {
    83  	return []Operation{Cancel, Do, Undo}
    84  }
    85  
    86  // Reason enumerates the values for reason.
    87  type Reason string
    88  
    89  const (
    90  	// Deleted ...
    91  	Deleted Reason = "Deleted"
    92  	// Registered ...
    93  	Registered Reason = "Registered"
    94  	// Suspended ...
    95  	Suspended Reason = "Suspended"
    96  	// Unregistered ...
    97  	Unregistered Reason = "Unregistered"
    98  	// Warned ...
    99  	Warned Reason = "Warned"
   100  )
   101  
   102  // PossibleReasonValues returns an array of possible values for the Reason const type.
   103  func PossibleReasonValues() []Reason {
   104  	return []Reason{Deleted, Registered, Suspended, Unregistered, Warned}
   105  }
   106  
   107  // Status enumerates the values for status.
   108  type Status string
   109  
   110  const (
   111  	// Aborted ...
   112  	Aborted Status = "aborted"
   113  	// Active ...
   114  	Active Status = "active"
   115  	// Expired ...
   116  	Expired Status = "expired"
   117  	// Failed ...
   118  	Failed Status = "failed"
   119  	// Succeeded ...
   120  	Succeeded Status = "succeeded"
   121  )
   122  
   123  // PossibleStatusValues returns an array of possible values for the Status const type.
   124  func PossibleStatusValues() []Status {
   125  	return []Status{Aborted, Active, Expired, Failed, Succeeded}
   126  }
   127  

View as plain text