| Name | Type | Description | Notes |
|---|---|---|---|
| ApiVersion | string | API Version of the namespace policy resource | [default to "security.k8smgmt.io/v3"] |
| Kind | string | Kind of the namespace policy resource | [default to "NamespaceNetworkPolicy"] |
| Metadata | Metadata | ||
| Spec | NamespaceNetworkPolicySpec |
func NewNamespaceNetworkPolicy(apiVersion string, kind string, metadata Metadata, spec NamespaceNetworkPolicySpec, ) *NamespaceNetworkPolicy
NewNamespaceNetworkPolicy instantiates a new NamespaceNetworkPolicy 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 NewNamespaceNetworkPolicyWithDefaults() *NamespaceNetworkPolicy
NewNamespaceNetworkPolicyWithDefaults instantiates a new NamespaceNetworkPolicy 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 *NamespaceNetworkPolicy) GetApiVersion() string
GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicy) GetApiVersionOk() (*string, bool)
GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicy) SetApiVersion(v string)
SetApiVersion sets ApiVersion field to given value.
func (o *NamespaceNetworkPolicy) GetKind() string
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicy) GetKindOk() (*string, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicy) SetKind(v string)
SetKind sets Kind field to given value.
func (o *NamespaceNetworkPolicy) GetMetadata() Metadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicy) GetMetadataOk() (*Metadata, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicy) SetMetadata(v Metadata)
SetMetadata sets Metadata field to given value.
func (o *NamespaceNetworkPolicy) GetSpec() NamespaceNetworkPolicySpec
GetSpec returns the Spec field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicy) GetSpecOk() (*NamespaceNetworkPolicySpec, bool)
GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicy) SetSpec(v NamespaceNetworkPolicySpec)
SetSpec sets Spec field to given value.