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, 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>archiveAccessRole()An iam role which is allowed to access the S3 (log, dump) archive)static CloudTenantcreate(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.java.util.Optional<java.security.Principal>creator()The user that created the tenantcom.google.common.collect.BiMap<java.security.PublicKey,java.security.Principal>developerKeys()Returns the set of developer keys and their corresponding developers for this tenant.TenantInfoinfo()Legal name, addresses etcjava.util.List<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, 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
-
type
public Tenant.Type type()
-
-