Class NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl

    • Field Detail

      • OBJECT_MAPPER

        protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
    • Constructor Detail

      • NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl

        public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl​(okhttp3.OkHttpClient client,
                                                                                    Config config,
                                                                                    String namespace,
                                                                                    String explicitNamespace,
                                                                                    Boolean fromServer,
                                                                                    Boolean deletingExisting,
                                                                                    List<io.fabric8.kubernetes.api.builder.Visitor> visitors,
                                                                                    InputStream is,
                                                                                    Map<String,​String> parameters,
                                                                                    Boolean cascading,
                                                                                    io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
                                                                                    boolean dryRun)
      • NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl

        public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl​(okhttp3.OkHttpClient client,
                                                                                    Config config,
                                                                                    String namespace,
                                                                                    String explicitNamespace,
                                                                                    Boolean fromServer,
                                                                                    Boolean deletingExisting,
                                                                                    List<io.fabric8.kubernetes.api.builder.Visitor> visitors,
                                                                                    Object item,
                                                                                    Map<String,​String> parameters,
                                                                                    io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
                                                                                    Boolean cascading,
                                                                                    boolean dryRun)
      • NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl

        public NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl​(okhttp3.OkHttpClient client,
                                                                                    Config config,
                                                                                    String namespace,
                                                                                    String explicitNamespace,
                                                                                    Boolean fromServer,
                                                                                    Boolean deletingExisting,
                                                                                    List<io.fabric8.kubernetes.api.builder.Visitor> visitors,
                                                                                    Object item,
                                                                                    InputStream inputStream,
                                                                                    Map<String,​String> parameters,
                                                                                    long gracePeriodSeconds,
                                                                                    io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
                                                                                    Boolean cascading,
                                                                                    long watchRetryInitialBackoffMillis,
                                                                                    double watchRetryBackoffMultiplier,
                                                                                    boolean dryRun)
    • Method Detail

      • dryRun

        public ListVisitFromServerWritable<io.fabric8.kubernetes.api.model.HasMetadata> dryRun​(boolean isDryRun)
        Description copied from interface: DryRunable
        Indicates whether modifications should not be persisted or not. If enabled, All dry run stages will be processed. the request is still processed as typical request: the fields are defaulted, the object is validated, it goes through the validation admission chain, and through the mutating admission chain, and then the final object is returned to the user as it normally would, without being persisted.
        Specified by:
        dryRun in interface DryRunable<ListVisitFromServerWritable<io.fabric8.kubernetes.api.model.HasMetadata>>
        Parameters:
        isDryRun - whether dry run is enabled or disabled
        Returns:
        write operations which are applicable for dry run
      • apply

        public List<io.fabric8.kubernetes.api.model.HasMetadata> apply()
        Specified by:
        apply in interface Applicable<List<io.fabric8.kubernetes.api.model.HasMetadata>>
      • createOrReplace

        public List<io.fabric8.kubernetes.api.model.HasMetadata> createOrReplace()
        Specified by:
        createOrReplace in interface Applicable<List<io.fabric8.kubernetes.api.model.HasMetadata>>
      • createOrReplaceAnd

        public Waitable<List<io.fabric8.kubernetes.api.model.HasMetadata>,​io.fabric8.kubernetes.api.model.HasMetadata> createOrReplaceAnd()
        Specified by:
        createOrReplaceAnd in interface ApplicableAnd<Waitable<List<io.fabric8.kubernetes.api.model.HasMetadata>,​io.fabric8.kubernetes.api.model.HasMetadata>>
      • delete

        public Boolean delete()
        Description copied from interface: Deletable
        Deletes resource and all managed resources, returns null or false if not found.
        Specified by:
        delete in interface Deletable
        Returns:
        value indicating object was deleted or not
      • get

        public List<io.fabric8.kubernetes.api.model.HasMetadata> get()
        Specified by:
        get in interface Gettable<List<io.fabric8.kubernetes.api.model.HasMetadata>>
        Returns:
        the item or null if the item doesn't exist.
      • withGracePeriod

        public CascadingDeletable<List<io.fabric8.kubernetes.api.model.HasMetadata>> withGracePeriod​(long gracePeriodSeconds)
        Description copied from interface: GracePeriodConfigurable
        The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
        Specified by:
        withGracePeriod in interface GracePeriodConfigurable<CascadingDeletable<List<io.fabric8.kubernetes.api.model.HasMetadata>>>
        Parameters:
        gracePeriodSeconds - grace period integer value in seconds
        Returns:
        the object for which grace period is configured
      • withPropagationPolicy

        public CascadingDeletable<List<io.fabric8.kubernetes.api.model.HasMetadata>> withPropagationPolicy​(io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy)
        Description copied from interface: PropagationPolicyConfigurable
        Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both.

        The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.

        Acceptable values are:
        'Orphan' - orphan the dependents;
        'Background' - allow the garbage collector to delete the dependents in the background;
        'Foreground' - a cascading policy that deletes all dependents in the foreground.

        Specified by:
        withPropagationPolicy in interface PropagationPolicyConfigurable<CascadingDeletable<List<io.fabric8.kubernetes.api.model.HasMetadata>>>
        Parameters:
        propagationPolicy - propagation policy in form of string DeletionPropagation
        Returns:
        resource
      • withWaitRetryBackoff

        public Waitable<List<io.fabric8.kubernetes.api.model.HasMetadata>,​io.fabric8.kubernetes.api.model.HasMetadata> withWaitRetryBackoff​(long initialBackoff,
                                                                                                                                                  TimeUnit backoffUnit,
                                                                                                                                                  double backoffMultiplier)
        Description copied from interface: Waitable
        Configure the backoff strategy to use when waiting for conditions, in case the watcher encounters a retryable error.
        Specified by:
        withWaitRetryBackoff in interface Waitable<List<io.fabric8.kubernetes.api.model.HasMetadata>,​io.fabric8.kubernetes.api.model.HasMetadata>
        Parameters:
        initialBackoff - the value for the initial backoff on first error
        backoffUnit - the TimeUnit for the initial backoff value
        backoffMultiplier - what to multiply the backoff by on each subsequent error
        Returns:
        the waitable
      • cascading

        public Deletable cascading​(boolean cascading)
        Description copied from interface: Cascading
        deletes dependent resources. Sets `orphanDependents` field to `false` when set `true`
        Specified by:
        cascading in interface Cascading<Deletable>
        Parameters:
        cascading - whether dependents should be orphaned or not.
        Returns:
        resource
      • getReadiness

        protected Readiness getReadiness()
      • asHasMetadata

        protected <T> List<io.fabric8.kubernetes.api.model.HasMetadata> asHasMetadata​(T item,
                                                                                      Boolean enableProcessing)