...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions

     1  package subscriptions
     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  // ResourceNameStatus enumerates the values for resource name status.
    10  type ResourceNameStatus string
    11  
    12  const (
    13  	// Allowed ...
    14  	Allowed ResourceNameStatus = "Allowed"
    15  	// Reserved ...
    16  	Reserved ResourceNameStatus = "Reserved"
    17  )
    18  
    19  // PossibleResourceNameStatusValues returns an array of possible values for the ResourceNameStatus const type.
    20  func PossibleResourceNameStatusValues() []ResourceNameStatus {
    21  	return []ResourceNameStatus{Allowed, Reserved}
    22  }
    23  
    24  // SpendingLimit enumerates the values for spending limit.
    25  type SpendingLimit string
    26  
    27  const (
    28  	// CurrentPeriodOff ...
    29  	CurrentPeriodOff SpendingLimit = "CurrentPeriodOff"
    30  	// Off ...
    31  	Off SpendingLimit = "Off"
    32  	// On ...
    33  	On SpendingLimit = "On"
    34  )
    35  
    36  // PossibleSpendingLimitValues returns an array of possible values for the SpendingLimit const type.
    37  func PossibleSpendingLimitValues() []SpendingLimit {
    38  	return []SpendingLimit{CurrentPeriodOff, Off, On}
    39  }
    40  
    41  // State enumerates the values for state.
    42  type State string
    43  
    44  const (
    45  	// Deleted ...
    46  	Deleted State = "Deleted"
    47  	// Disabled ...
    48  	Disabled State = "Disabled"
    49  	// Enabled ...
    50  	Enabled State = "Enabled"
    51  	// PastDue ...
    52  	PastDue State = "PastDue"
    53  	// Warned ...
    54  	Warned State = "Warned"
    55  )
    56  
    57  // PossibleStateValues returns an array of possible values for the State const type.
    58  func PossibleStateValues() []State {
    59  	return []State{Deleted, Disabled, Enabled, PastDue, Warned}
    60  }
    61  

View as plain text