Class CloudTenant


  • public class CloudTenant
    extends Tenant
    A paying tenant in a Vespa cloud service.
    Author:
    jonmv
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant

        Tenant.Type
    • Constructor Summary

      Constructors 
      Constructor Description
      CloudTenant​(com.yahoo.config.provision.TenantName name, java.time.Instant createdAt, LastLoginInfo lastLoginInfo, java.util.Optional<java.security.Principal> creator, com.google.common.collect.BiMap<java.security.PublicKey,​java.security.Principal> developerKeys, TenantInfo info, java.util.List<TenantSecretStore> tenantSecretStores, java.util.Optional<java.lang.String> archiveAccessRole)
      Public for the serialization layer — do not use!
    • Constructor Detail

      • CloudTenant

        public CloudTenant​(com.yahoo.config.provision.TenantName name,
                           java.time.Instant createdAt,
                           LastLoginInfo lastLoginInfo,
                           java.util.Optional<java.security.Principal> creator,
                           com.google.common.collect.BiMap<java.security.PublicKey,​java.security.Principal> developerKeys,
                           TenantInfo info,
                           java.util.List<TenantSecretStore> tenantSecretStores,
                           java.util.Optional<java.lang.String> archiveAccessRole)
        Public for the serialization layer — do not use!
    • Method Detail

      • create

        public static CloudTenant create​(com.yahoo.config.provision.TenantName tenantName,
                                         java.time.Instant createdAt,
                                         java.security.Principal creator)
        Creates a tenant with the given name, provided it passes validation.
      • creator

        public java.util.Optional<java.security.Principal> creator()
        The user that created the tenant
      • info

        public TenantInfo info()
        Legal name, addresses etc
      • archiveAccessRole

        public java.util.Optional<java.lang.String> archiveAccessRole()
        An iam role which is allowed to access the S3 (log, dump) archive)
      • developerKeys

        public com.google.common.collect.BiMap<java.security.PublicKey,​java.security.Principal> developerKeys()
        Returns the set of developer keys and their corresponding developers for this tenant.
      • tenantSecretStores

        public java.util.List<TenantSecretStore> tenantSecretStores()
        List of configured secret stores