Name | Type | Description | Notes |
---|---|---|---|
Key | string | The key to select. | |
Name | Pointer to string | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] |
Optional | Pointer to bool | Specify whether the ConfigMap or it's key must be defined | [optional] |
func NewV1ConfigMapKeySelector(key string, ) *V1ConfigMapKeySelector
NewV1ConfigMapKeySelector instantiates a new V1ConfigMapKeySelector object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewV1ConfigMapKeySelectorWithDefaults() *V1ConfigMapKeySelector
NewV1ConfigMapKeySelectorWithDefaults instantiates a new V1ConfigMapKeySelector object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *V1ConfigMapKeySelector) GetKey() string
GetKey returns the Key field if non-nil, zero value otherwise.
func (o *V1ConfigMapKeySelector) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1ConfigMapKeySelector) SetKey(v string)
SetKey sets Key field to given value.
func (o *V1ConfigMapKeySelector) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *V1ConfigMapKeySelector) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1ConfigMapKeySelector) SetName(v string)
SetName sets Name field to given value.
func (o *V1ConfigMapKeySelector) HasName() bool
HasName returns a boolean if a field has been set.
func (o *V1ConfigMapKeySelector) GetOptional() bool
GetOptional returns the Optional field if non-nil, zero value otherwise.
func (o *V1ConfigMapKeySelector) GetOptionalOk() (*bool, bool)
GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V1ConfigMapKeySelector) SetOptional(v bool)
SetOptional sets Optional field to given value.
func (o *V1ConfigMapKeySelector) HasOptional() bool
HasOptional returns a boolean if a field has been set.