Class AthenzTenant
java.lang.Object
com.yahoo.vespa.hosted.controller.tenant.Tenant
com.yahoo.vespa.hosted.controller.tenant.AthenzTenant
Represents an Athenz tenant in hosted Vespa.
- Author:
- mpolden
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant
Tenant.Type -
Constructor Summary
ConstructorsConstructorDescriptionAthenzTenant(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Optional<Contact> contact, Instant createdAt, LastLoginInfo lastLoginInfo, Instant tenantRolesLastMaintained, List<CloudAccountInfo> cloudAccounts) This should only be used by serialization. -
Method Summary
Modifier and TypeMethodDescriptionstatic AthenzTenantcreate(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Instant createdAt) Create a new Athenz tenantcom.yahoo.vespa.athenz.api.AthenzDomaindomain()Athenz domain of this tenantbooleanin(com.yahoo.vespa.athenz.api.AthenzDomain domain) Returns true if tenant is in given domainproperty()Property name of this tenantProperty ID of the tenant, if anytoString()type()Methods inherited from class com.yahoo.vespa.hosted.controller.tenant.Tenant
cloudAccounts, contact, createdAt, equals, hashCode, lastLoginInfo, name, requireName, tenantRolesLastMaintained
-
Constructor Details
-
AthenzTenant
public AthenzTenant(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Optional<Contact> contact, Instant createdAt, LastLoginInfo lastLoginInfo, Instant tenantRolesLastMaintained, List<CloudAccountInfo> cloudAccounts) This should only be used by serialization. Usecreate(TenantName, AthenzDomain, Property, Optional, Instant).
-
-
Method Details
-
property
Property name of this tenant -
propertyId
Property ID of the tenant, if any -
domain
public com.yahoo.vespa.athenz.api.AthenzDomain domain()Athenz domain of this tenant -
in
public boolean in(com.yahoo.vespa.athenz.api.AthenzDomain domain) Returns true if tenant is in given domain -
toString
-
create
public static AthenzTenant create(com.yahoo.config.provision.TenantName name, com.yahoo.vespa.athenz.api.AthenzDomain domain, Property property, Optional<PropertyId> propertyId, Instant createdAt) Create a new Athenz tenant -
type
-