Package io.fabric8.openshift.api.model
Class ServiceAccountRestriction
- java.lang.Object
-
- io.fabric8.openshift.api.model.ServiceAccountRestriction
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ServiceAccountRestrictionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ServiceAccountRestriction extends Object implements io.fabric8.kubernetes.api.builder.Editable<ServiceAccountRestrictionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ServiceAccountRestriction matches a service account by a string match on either the service-account name or the name of the service account's namespace.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountRestriction()No args constructor for use in serializationServiceAccountRestriction(List<String> namespaces, List<ServiceAccountReference> serviceaccounts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountRestrictionBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getNamespaces()namespaces specifies a list of literal namespace names.List<ServiceAccountReference>getServiceaccounts()serviceaccounts specifies a list of literal service-account names.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNamespaces(List<String> namespaces)namespaces specifies a list of literal namespace names.voidsetServiceaccounts(List<ServiceAccountReference> serviceaccounts)serviceaccounts specifies a list of literal service-account names.ServiceAccountRestrictionBuildertoBuilder()
-
-
-
Constructor Detail
-
ServiceAccountRestriction
public ServiceAccountRestriction()
No args constructor for use in serialization
-
ServiceAccountRestriction
public ServiceAccountRestriction(List<String> namespaces, List<ServiceAccountReference> serviceaccounts)
-
-
Method Detail
-
getNamespaces
public List<String> getNamespaces()
namespaces specifies a list of literal namespace names.
-
setNamespaces
public void setNamespaces(List<String> namespaces)
namespaces specifies a list of literal namespace names.
-
getServiceaccounts
public List<ServiceAccountReference> getServiceaccounts()
serviceaccounts specifies a list of literal service-account names.
-
setServiceaccounts
public void setServiceaccounts(List<ServiceAccountReference> serviceaccounts)
serviceaccounts specifies a list of literal service-account names.
-
edit
public ServiceAccountRestrictionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ServiceAccountRestrictionBuilder>
-
toBuilder
public ServiceAccountRestrictionBuilder toBuilder()
-
-