MongoDBCredentials

public class MongoDBCredentials

Contains the credentials for a MongoDB service instance. You will typically receive an instance of this type through cloudEnv.getMongoDBCredentials(name: String).

Reference MongoDB.

  • uri

    The URI from the MongoDB service instance credentials.

    Declaration

    Swift

    public let uri: String
  • The host name from the MongoDB service instance credentials.

    Declaration

    Swift

    public let host: String
  • The username from the MongoDB service instance credentials.

    Declaration

    Swift

    public let username: String
  • The password from the MongoDB service instance credentials.

    Declaration

    Swift

    public let password: String
  • The port from the MongoDB service instance credentials.

    Declaration

    Swift

    public let port: Int
  • Initializes an instance of the MongoDB service credentials.

    Declaration

    Swift

    public init(
      uri: String,
      host: String,
      username: String,
      password: String,
      port: Int)