Class VolumeAttachmentHandler
java.lang.Object
io.fabric8.kubernetes.client.handlers.storage.v1.VolumeAttachmentHandler
- All Implemented Interfaces:
ResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>
public class VolumeAttachmentHandler extends Object implements ResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.ResourceHandler
ResourceHandler.Key -
Constructor Summary
Constructors Constructor Description VolumeAttachmentHandler() -
Method Summary
Modifier and Type Method Description io.fabric8.kubernetes.api.model.storage.VolumeAttachmentcreate(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Create the specified resource.Booleandelete(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Delete the specified resource (if exists).io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilderedit(io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Edit the specified resource.StringgetApiVersion()StringgetKind()io.fabric8.kubernetes.api.model.storage.VolumeAttachmentreload(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Reload the specified resource (if exists).io.fabric8.kubernetes.api.model.storage.VolumeAttachmentreplace(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Replace the specified resource.io.fabric8.kubernetes.api.model.storage.VolumeAttachmentwaitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, Predicate<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> condition, long amount, TimeUnit timeUnit)io.fabric8.kubernetes.api.model.storage.VolumeAttachmentwaitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, long amount, TimeUnit timeUnit)Waits until the specified resource is Ready.Watchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, io.fabric8.kubernetes.api.model.ListOptions options, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Watches the specified resource for changesWatchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Watches the specified resource for changes.Watchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Watches the specified resource for changes.
-
Constructor Details
-
VolumeAttachmentHandler
public VolumeAttachmentHandler()
-
-
Method Details
-
getKind
- Specified by:
getKindin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>
-
getApiVersion
- Specified by:
getApiVersionin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>
-
create
public io.fabric8.kubernetes.api.model.storage.VolumeAttachment create(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Description copied from interface:ResourceHandlerCreate the specified resource.- Specified by:
createin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to create.- Returns:
- The created resource.
-
replace
public io.fabric8.kubernetes.api.model.storage.VolumeAttachment replace(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Description copied from interface:ResourceHandlerReplace the specified resource.- Specified by:
replacein interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to replace.- Returns:
- The created resource.
-
reload
public io.fabric8.kubernetes.api.model.storage.VolumeAttachment reload(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Description copied from interface:ResourceHandlerReload the specified resource (if exists).- Specified by:
reloadin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to reload.- Returns:
- The reloaded resource.
-
edit
public io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder edit(io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Description copied from interface:ResourceHandlerEdit the specified resource.- Specified by:
editin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
item- The resource to edit.- Returns:
- The resource editor.
-
delete
public Boolean delete(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item)Description copied from interface:ResourceHandlerDelete the specified resource (if exists).- Specified by:
deletein interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.propagationPolicy- Whether and how garbage collection will be performed.item- The resource to delete.- Returns:
- The true if the resource was successfully deleted.
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes.- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to delete.watcher- TheWatcherto use.- Returns:
- The
Watch
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes.- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to delete.resourceVersion- The resourceVersion of objectwatcher- TheWatcherto use.- Returns:
- The
Watch
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, io.fabric8.kubernetes.api.model.ListOptions options, Watcher<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of http client.config- The client config.namespace- The target namespace.item- The resource to delete.options- TheListOptionsfor available optionswatcher- TheWatcherto use.- Returns:
- The
Watch
-
waitUntilReady
public io.fabric8.kubernetes.api.model.storage.VolumeAttachment waitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, long amount, TimeUnit timeUnit) throws InterruptedExceptionDescription copied from interface:ResourceHandlerWaits until the specified resource is Ready. For resources that 'readiness' is not applicable the method is equivalent to get.- Specified by:
waitUntilReadyin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to wait.amount- The amount of time to waittimeUnit- The waitTimeUnit.- Returns:
- The true if the resource was successfully deleted.
- Throws:
InterruptedException- Interrupted Exception
-
waitUntilCondition
public io.fabric8.kubernetes.api.model.storage.VolumeAttachment waitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.storage.VolumeAttachment item, Predicate<io.fabric8.kubernetes.api.model.storage.VolumeAttachment> condition, long amount, TimeUnit timeUnit) throws InterruptedException- Specified by:
waitUntilConditionin interfaceResourceHandler<io.fabric8.kubernetes.api.model.storage.VolumeAttachment,io.fabric8.kubernetes.api.model.storage.VolumeAttachmentBuilder>- Throws:
InterruptedException
-