Class Perspective
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.Perspective
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PerspectiveBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Perspective extends Object implements io.fabric8.kubernetes.api.builder.Editable<PerspectiveBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Perspective defines a perspective that cluster admins want to show/hide in the perspective switcher dropdown- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Perspective()No args constructor for use in serializationPerspective(String id, List<PinnedResourceReference> pinnedResources, PerspectiveVisibility visibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveBuilderedit()Map<String,Object>getAdditionalProperties()StringgetId()id defines the id of the perspective.List<PinnedResourceReference>getPinnedResources()pinnedResources defines the list of default pinned resources that users will see on the perspective navigation if they have not customized these pinned resources themselves.PerspectiveVisibilitygetVisibility()Perspective defines a perspective that cluster admins want to show/hide in the perspective switcher dropdownvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetId(String id)id defines the id of the perspective.voidsetPinnedResources(List<PinnedResourceReference> pinnedResources)pinnedResources defines the list of default pinned resources that users will see on the perspective navigation if they have not customized these pinned resources themselves.voidsetVisibility(PerspectiveVisibility visibility)Perspective defines a perspective that cluster admins want to show/hide in the perspective switcher dropdownPerspectiveBuildertoBuilder()
-
-
-
Constructor Detail
-
Perspective
public Perspective()
No args constructor for use in serialization
-
Perspective
public Perspective(String id, List<PinnedResourceReference> pinnedResources, PerspectiveVisibility visibility)
-
-
Method Detail
-
getId
public String getId()
id defines the id of the perspective. Example: "dev", "admin". The available perspective ids can be found in the code snippet section next to the yaml editor. Incorrect or unknown ids will be ignored.
-
setId
public void setId(String id)
id defines the id of the perspective. Example: "dev", "admin". The available perspective ids can be found in the code snippet section next to the yaml editor. Incorrect or unknown ids will be ignored.
-
getPinnedResources
public List<PinnedResourceReference> getPinnedResources()
pinnedResources defines the list of default pinned resources that users will see on the perspective navigation if they have not customized these pinned resources themselves. The list of available Kubernetes resources could be read via `kubectl api-resources`. The console will also provide a configuration UI and a YAML snippet that will list the available resources that can be pinned to the navigation. Incorrect or unknown resources will be ignored.
-
setPinnedResources
public void setPinnedResources(List<PinnedResourceReference> pinnedResources)
pinnedResources defines the list of default pinned resources that users will see on the perspective navigation if they have not customized these pinned resources themselves. The list of available Kubernetes resources could be read via `kubectl api-resources`. The console will also provide a configuration UI and a YAML snippet that will list the available resources that can be pinned to the navigation. Incorrect or unknown resources will be ignored.
-
getVisibility
public PerspectiveVisibility getVisibility()
Perspective defines a perspective that cluster admins want to show/hide in the perspective switcher dropdown
-
setVisibility
public void setVisibility(PerspectiveVisibility visibility)
Perspective defines a perspective that cluster admins want to show/hide in the perspective switcher dropdown
-
edit
public PerspectiveBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PerspectiveBuilder>
-
toBuilder
public PerspectiveBuilder toBuilder()
-
-