ResourceDefinitionVersion ================================== .. toctree:: :maxdepth: 2 :caption: Contents: ======== Functions --------- set +++ Set any specific field to a value **Args** * \*\*kwargs * Arbitrary list of keys as variables in formation of YAML path separated by underscores with their assocaited values. For example, to set the value at .. code-block:: JSON { "spec": { "template": { "spec": "" } } } use .. code-block:: Python obj.set(spec_template_spec="foobar") * You can also specify an incomplete path and k8sGen will attempt to find a unique location whose ending path matches what you have specified. For the case of the above structure, running .. code-block:: Python obj.set(template_spec="foobar") will set the same location because the only path that ends in 'template/spec' is 'spec/template/spec' **Returns** List of return values for each variable set Possible return values include: * True : value was set successfully * (False, 'invalid key name') : the key you are trying to set does not exist for this object * (False, 'abniguous key name') : the key you are trying to set does not refer to a unique location get +++ Get the values that have been set for specific fields **Args** * \*args * Arbitrary list of keys as variables in formation of YAML path separated by underscores **Returns** List of return values for each variable set Possible return values include: * {Value} : The key's value * (False, 'invalid key name') : the key you are trying to set does not exist for this object Key Names and Types ------------------- +-------------------------------------------------------------+-----------------------------+ | Key | Type | +=============================================================+=============================+ | additionalPrinterColumns | <[]COMPONENT.PrinterColumn> | +-------------------------------------------------------------+-----------------------------+ | name | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_$ref | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_$schema | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_additionalItems | <> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_additionalProperties | <> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_default | <> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_dependencies | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_description | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_enum | <[]> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_example | <> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_exclusiveMaximum | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_exclusiveMinimum | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_externalDocs_description | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_externalDocs_url | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_format | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_id | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_items | <> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_maxItems | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_maxLength | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_maxProperties | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_maximum | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_minItems | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_minLength | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_minProperties | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_minimum | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_multipleOf | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_nullable | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_pattern | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_required | <[]string> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_title | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_type | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_uniqueItems | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-embedded-resource | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-int-or-string | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-list-map-keys | <[]string> | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-list-type | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-map-type | | +-------------------------------------------------------------+-----------------------------+ | schema_openAPIV3Schema_x-kubernetes-preserve-unknown-fields | | +-------------------------------------------------------------+-----------------------------+ | served | | +-------------------------------------------------------------+-----------------------------+ | storage | | +-------------------------------------------------------------+-----------------------------+ | subresources_scale_labelSelectorPath | | +-------------------------------------------------------------+-----------------------------+ | subresources_scale_specReplicasPath | | +-------------------------------------------------------------+-----------------------------+ | subresources_scale_statusReplicasPath | | +-------------------------------------------------------------+-----------------------------+ | subresources_status | | +-------------------------------------------------------------+-----------------------------+ JSON fields ----------- .. code-block:: JSON { "additionalPrinterColumns": "<[]COMPONENT.PrinterColumn>", "name": "", "schema": { "openAPIV3Schema": { "$ref": "", "$schema": "", "additionalItems": "<>", "additionalProperties": "<>", "allOf": null, "anyOf": null, "default": "<>", "definitions": null, "dependencies": "", "description": "", "enum": "<[]>", "example": "<>", "exclusiveMaximum": "", "exclusiveMinimum": "", "externalDocs": { "description": "", "url": "" }, "format": "", "id": "", "items": "<>", "maxItems": "", "maxLength": "", "maxProperties": "", "maximum": "", "minItems": "", "minLength": "", "minProperties": "", "minimum": "", "multipleOf": "", "not": null, "nullable": "", "oneOf": null, "pattern": "", "patternProperties": null, "properties": null, "required": "<[]string>", "title": "", "type": "", "uniqueItems": "", "x-kubernetes-embedded-resource": "", "x-kubernetes-int-or-string": "", "x-kubernetes-list-map-keys": "<[]string>", "x-kubernetes-list-type": "", "x-kubernetes-map-type": "", "x-kubernetes-preserve-unknown-fields": "" } }, "served": "", "storage": "", "subresources": { "scale": { "labelSelectorPath": "", "specReplicasPath": "", "statusReplicasPath": "" }, "status": "" } }