Skip to content

Commit

Permalink
feat(Discovery): Add "LT" option to environment sizes
Browse files Browse the repository at this point in the history
For the Lite plan
  • Loading branch information
Anthony Oliveri committed Oct 19, 2018
1 parent 725e1d5 commit f92fcde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Source/DiscoveryV1/Models/CreateEnvironmentRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ import Foundation
internal struct CreateEnvironmentRequest: Encodable {

/**
Size of the environment.
Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the
default is `S`.
*/
public enum Size: String {
case lt = "LT"
case xs = "XS"
case s = "S"
case ms = "MS"
Expand All @@ -45,7 +47,8 @@ internal struct CreateEnvironmentRequest: Encodable {
public var description: String?

/**
Size of the environment.
Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all other plans the
default is `S`.
*/
public var size: String?

Expand All @@ -61,7 +64,8 @@ internal struct CreateEnvironmentRequest: Encodable {

- parameter name: Name that identifies the environment.
- parameter description: Description of the environment.
- parameter size: Size of the environment.
- parameter size: Size of the environment. In the Lite plan the default and only accepted value is `LT`, in all
other plans the default is `S`.

- returns: An initialized `CreateEnvironmentRequest`.
*/
Expand Down
3 changes: 2 additions & 1 deletion Source/DiscoveryV1/Models/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ public struct Environment: Decodable {
}

/**
Size of the environment.
Current size of the environment.
*/
public enum Size: String {
case lt = "LT"
case xs = "XS"
case s = "S"
case ms = "MS"
Expand Down

0 comments on commit f92fcde

Please sign in to comment.