1package redis 2 3// Copyright (c) Microsoft and contributors. All rights reserved. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// 14// See the License for the specific language governing permissions and 15// limitations under the License. 16// 17// Code generated by Microsoft (R) AutoRest Code Generator. 18// Changes may cause incorrect behavior and will be lost if the code is regenerated. 19 20// DayOfWeek enumerates the values for day of week. 21type DayOfWeek string 22 23const ( 24 // Everyday ... 25 Everyday DayOfWeek = "Everyday" 26 // Friday ... 27 Friday DayOfWeek = "Friday" 28 // Monday ... 29 Monday DayOfWeek = "Monday" 30 // Saturday ... 31 Saturday DayOfWeek = "Saturday" 32 // Sunday ... 33 Sunday DayOfWeek = "Sunday" 34 // Thursday ... 35 Thursday DayOfWeek = "Thursday" 36 // Tuesday ... 37 Tuesday DayOfWeek = "Tuesday" 38 // Wednesday ... 39 Wednesday DayOfWeek = "Wednesday" 40 // Weekend ... 41 Weekend DayOfWeek = "Weekend" 42) 43 44// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. 45func PossibleDayOfWeekValues() []DayOfWeek { 46 return []DayOfWeek{Everyday, Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday, Weekend} 47} 48 49// KeyType enumerates the values for key type. 50type KeyType string 51 52const ( 53 // Primary ... 54 Primary KeyType = "Primary" 55 // Secondary ... 56 Secondary KeyType = "Secondary" 57) 58 59// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. 60func PossibleKeyTypeValues() []KeyType { 61 return []KeyType{Primary, Secondary} 62} 63 64// ProvisioningState enumerates the values for provisioning state. 65type ProvisioningState string 66 67const ( 68 // Creating ... 69 Creating ProvisioningState = "Creating" 70 // Deleting ... 71 Deleting ProvisioningState = "Deleting" 72 // Disabled ... 73 Disabled ProvisioningState = "Disabled" 74 // Failed ... 75 Failed ProvisioningState = "Failed" 76 // Linking ... 77 Linking ProvisioningState = "Linking" 78 // Provisioning ... 79 Provisioning ProvisioningState = "Provisioning" 80 // RecoveringScaleFailure ... 81 RecoveringScaleFailure ProvisioningState = "RecoveringScaleFailure" 82 // Scaling ... 83 Scaling ProvisioningState = "Scaling" 84 // Succeeded ... 85 Succeeded ProvisioningState = "Succeeded" 86 // Unlinking ... 87 Unlinking ProvisioningState = "Unlinking" 88 // Unprovisioning ... 89 Unprovisioning ProvisioningState = "Unprovisioning" 90 // Updating ... 91 Updating ProvisioningState = "Updating" 92) 93 94// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 95func PossibleProvisioningStateValues() []ProvisioningState { 96 return []ProvisioningState{Creating, Deleting, Disabled, Failed, Linking, Provisioning, RecoveringScaleFailure, Scaling, Succeeded, Unlinking, Unprovisioning, Updating} 97} 98 99// RebootType enumerates the values for reboot type. 100type RebootType string 101 102const ( 103 // AllNodes ... 104 AllNodes RebootType = "AllNodes" 105 // PrimaryNode ... 106 PrimaryNode RebootType = "PrimaryNode" 107 // SecondaryNode ... 108 SecondaryNode RebootType = "SecondaryNode" 109) 110 111// PossibleRebootTypeValues returns an array of possible values for the RebootType const type. 112func PossibleRebootTypeValues() []RebootType { 113 return []RebootType{AllNodes, PrimaryNode, SecondaryNode} 114} 115 116// ReplicationRole enumerates the values for replication role. 117type ReplicationRole string 118 119const ( 120 // ReplicationRolePrimary ... 121 ReplicationRolePrimary ReplicationRole = "Primary" 122 // ReplicationRoleSecondary ... 123 ReplicationRoleSecondary ReplicationRole = "Secondary" 124) 125 126// PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type. 127func PossibleReplicationRoleValues() []ReplicationRole { 128 return []ReplicationRole{ReplicationRolePrimary, ReplicationRoleSecondary} 129} 130 131// SkuFamily enumerates the values for sku family. 132type SkuFamily string 133 134const ( 135 // C ... 136 C SkuFamily = "C" 137 // P ... 138 P SkuFamily = "P" 139) 140 141// PossibleSkuFamilyValues returns an array of possible values for the SkuFamily const type. 142func PossibleSkuFamilyValues() []SkuFamily { 143 return []SkuFamily{C, P} 144} 145 146// SkuName enumerates the values for sku name. 147type SkuName string 148 149const ( 150 // Basic ... 151 Basic SkuName = "Basic" 152 // Premium ... 153 Premium SkuName = "Premium" 154 // Standard ... 155 Standard SkuName = "Standard" 156) 157 158// PossibleSkuNameValues returns an array of possible values for the SkuName const type. 159func PossibleSkuNameValues() []SkuName { 160 return []SkuName{Basic, Premium, Standard} 161} 162 163// TLSVersion enumerates the values for tls version. 164type TLSVersion string 165 166const ( 167 // OneFullStopOne ... 168 OneFullStopOne TLSVersion = "1.1" 169 // OneFullStopTwo ... 170 OneFullStopTwo TLSVersion = "1.2" 171 // OneFullStopZero ... 172 OneFullStopZero TLSVersion = "1.0" 173) 174 175// PossibleTLSVersionValues returns an array of possible values for the TLSVersion const type. 176func PossibleTLSVersionValues() []TLSVersion { 177 return []TLSVersion{OneFullStopOne, OneFullStopTwo, OneFullStopZero} 178} 179