1package communication 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// ActionType enumerates the values for action type. 21type ActionType string 22 23const ( 24 // Internal ... 25 Internal ActionType = "Internal" 26) 27 28// PossibleActionTypeValues returns an array of possible values for the ActionType const type. 29func PossibleActionTypeValues() []ActionType { 30 return []ActionType{Internal} 31} 32 33// CreatedByType enumerates the values for created by type. 34type CreatedByType string 35 36const ( 37 // Application ... 38 Application CreatedByType = "Application" 39 // Key ... 40 Key CreatedByType = "Key" 41 // ManagedIdentity ... 42 ManagedIdentity CreatedByType = "ManagedIdentity" 43 // User ... 44 User CreatedByType = "User" 45) 46 47// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. 48func PossibleCreatedByTypeValues() []CreatedByType { 49 return []CreatedByType{Application, Key, ManagedIdentity, User} 50} 51 52// KeyType enumerates the values for key type. 53type KeyType string 54 55const ( 56 // Primary ... 57 Primary KeyType = "Primary" 58 // Secondary ... 59 Secondary KeyType = "Secondary" 60) 61 62// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. 63func PossibleKeyTypeValues() []KeyType { 64 return []KeyType{Primary, Secondary} 65} 66 67// Origin enumerates the values for origin. 68type Origin string 69 70const ( 71 // OriginSystem ... 72 OriginSystem Origin = "system" 73 // OriginUser ... 74 OriginUser Origin = "user" 75 // OriginUsersystem ... 76 OriginUsersystem Origin = "user,system" 77) 78 79// PossibleOriginValues returns an array of possible values for the Origin const type. 80func PossibleOriginValues() []Origin { 81 return []Origin{OriginSystem, OriginUser, OriginUsersystem} 82} 83 84// ProvisioningState enumerates the values for provisioning state. 85type ProvisioningState string 86 87const ( 88 // Canceled ... 89 Canceled ProvisioningState = "Canceled" 90 // Creating ... 91 Creating ProvisioningState = "Creating" 92 // Deleting ... 93 Deleting ProvisioningState = "Deleting" 94 // Failed ... 95 Failed ProvisioningState = "Failed" 96 // Moving ... 97 Moving ProvisioningState = "Moving" 98 // Running ... 99 Running ProvisioningState = "Running" 100 // Succeeded ... 101 Succeeded ProvisioningState = "Succeeded" 102 // Unknown ... 103 Unknown ProvisioningState = "Unknown" 104 // Updating ... 105 Updating ProvisioningState = "Updating" 106) 107 108// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 109func PossibleProvisioningStateValues() []ProvisioningState { 110 return []ProvisioningState{Canceled, Creating, Deleting, Failed, Moving, Running, Succeeded, Unknown, Updating} 111} 112 113// Status enumerates the values for status. 114type Status string 115 116const ( 117 // StatusCanceled ... 118 StatusCanceled Status = "Canceled" 119 // StatusCreating ... 120 StatusCreating Status = "Creating" 121 // StatusDeleting ... 122 StatusDeleting Status = "Deleting" 123 // StatusFailed ... 124 StatusFailed Status = "Failed" 125 // StatusMoving ... 126 StatusMoving Status = "Moving" 127 // StatusSucceeded ... 128 StatusSucceeded Status = "Succeeded" 129) 130 131// PossibleStatusValues returns an array of possible values for the Status const type. 132func PossibleStatusValues() []Status { 133 return []Status{StatusCanceled, StatusCreating, StatusDeleting, StatusFailed, StatusMoving, StatusSucceeded} 134} 135