@Service public class ResourceQuotaHandler extends Object implements ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
Constructor and Description |
---|
ResourceQuotaHandler() |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.api.model.ResourceQuota |
create(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.ResourceQuota item)
Create the specified resource.
|
Boolean |
delete(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.ResourceQuota item)
Delete the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.ResourceQuotaBuilder |
edit(io.fabric8.kubernetes.api.model.ResourceQuota item)
Edit the specified resource.
|
String |
getKind() |
io.fabric8.kubernetes.api.model.ResourceQuota |
reload(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.ResourceQuota item)
Reload the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.ResourceQuota |
replace(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.ResourceQuota item)
Replace the specified resource.
|
public String getKind()
getKind
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
public io.fabric8.kubernetes.api.model.ResourceQuota create(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.ResourceQuota item)
ResourceHandler
create
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to create.public io.fabric8.kubernetes.api.model.ResourceQuota replace(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.ResourceQuota item)
ResourceHandler
replace
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to replace.public io.fabric8.kubernetes.api.model.ResourceQuota reload(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.ResourceQuota item)
ResourceHandler
reload
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to reload.public io.fabric8.kubernetes.api.model.ResourceQuotaBuilder edit(io.fabric8.kubernetes.api.model.ResourceQuota item)
ResourceHandler
edit
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
item
- The resource to edit.public Boolean delete(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.ResourceQuota item)
ResourceHandler
delete
in interface ResourceHandler<io.fabric8.kubernetes.api.model.ResourceQuota,io.fabric8.kubernetes.api.model.ResourceQuotaBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to delete.Copyright © 2015–2016 Red Hat. All rights reserved.