Method: PureCloud::KeyRotationSchedule#valid?

Defined in:
lib/purecloudclient_v2a/models/key_rotation_schedule.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/purecloudclient_v2a/models/key_rotation_schedule.rb', line 120

def valid?
  
  
  
  
  
  
  
  
  
  
  if @period.nil?
    return false
  end

  
  
  allowed_values = ["DISABLED", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
  if @period && !allowed_values.include?(@period)
    return false
  end
  
  
  
  
  
  
  
end