Class CloudTenant
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.tenant.Tenant
-
- com.yahoo.vespa.hosted.controller.tenant.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, Instant createdAt, LastLoginInfo lastLoginInfo, Optional<Principal> creator, com.google.common.collect.BiMap<PublicKey,Principal> developerKeys, TenantInfo info, List<TenantSecretStore> tenantSecretStores, Optional<String> archiveAccessRole)Public for the serialization layer — do not use!
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>archiveAccessRole()An iam role which is allowed to access the S3 (log, dump) archive)static CloudTenantcreate(com.yahoo.config.provision.TenantName tenantName, Instant createdAt, Principal creator)Creates a tenant with the given name, provided it passes validation.Optional<Principal>creator()The user that created the tenantcom.google.common.collect.BiMap<PublicKey,Principal>developerKeys()Returns the set of developer keys and their corresponding developers for this tenant.TenantInfoinfo()Legal name, addresses etcList<TenantSecretStore>tenantSecretStores()List of configured secret storesTenant.Typetype()-
Methods inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant
contact, createdAt, equals, hashCode, lastLoginInfo, name, requireName
-
-
-
-
Constructor Detail
-
CloudTenant
public CloudTenant(com.yahoo.config.provision.TenantName name, Instant createdAt, LastLoginInfo lastLoginInfo, Optional<Principal> creator, com.google.common.collect.BiMap<PublicKey,Principal> developerKeys, TenantInfo info, List<TenantSecretStore> tenantSecretStores, Optional<String> archiveAccessRole)Public for the serialization layer — do not use!
-
-
Method Detail
-
create
public static CloudTenant create(com.yahoo.config.provision.TenantName tenantName, Instant createdAt, Principal creator)
Creates a tenant with the given name, provided it passes validation.
-
info
public TenantInfo info()
Legal name, addresses etc
-
archiveAccessRole
public Optional<String> archiveAccessRole()
An iam role which is allowed to access the S3 (log, dump) archive)
-
developerKeys
public com.google.common.collect.BiMap<PublicKey,Principal> developerKeys()
Returns the set of developer keys and their corresponding developers for this tenant.
-
tenantSecretStores
public List<TenantSecretStore> tenantSecretStores()
List of configured secret stores
-
type
public Tenant.Type type()
-
-