Class V1alpha2NamedResourcesRequest
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2NamedResourcesRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1alpha2NamedResourcesRequest
extends Object
NamedResourcesRequest is used in ResourceRequestModel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1alpha2NamedResourcesRequest given an JSON stringSelector is a CEL expression which must evaluate to true if a resource instance is suitable.int
hashCode()
void
setSelector
(String selector) toJson()
Convert an instance of V1alpha2NamedResourcesRequest to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_SELECTOR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2NamedResourcesRequest
public V1alpha2NamedResourcesRequest()
-
-
Method Details
-
selector
-
getSelector
Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) && attributes.stringslice[\"b\"].isSorted()- Returns:
- selector
-
setSelector
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1alpha2NamedResourcesRequest
-
fromJson
Create an instance of V1alpha2NamedResourcesRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2NamedResourcesRequest
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2NamedResourcesRequest
-
toJson
Convert an instance of V1alpha2NamedResourcesRequest to an JSON string- Returns:
- JSON string
-