| Name | Type | Description | Notes |
|---|---|---|---|
| ApiVersion | string | API Version of the namespace network policy rule resource | [default to "security.k8smgmt.io/v3"] |
| Kind | string | Kind of the namespace network policy rule resource | [default to "NamespaceNetworkPolicyRule"] |
| Metadata | Metadata | ||
| Spec | NamespaceNetworkPolicyRuleSpec |
func NewNamespaceNetworkPolicyRule(apiVersion string, kind string, metadata Metadata, spec NamespaceNetworkPolicyRuleSpec, ) *NamespaceNetworkPolicyRule
NewNamespaceNetworkPolicyRule instantiates a new NamespaceNetworkPolicyRule 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 NewNamespaceNetworkPolicyRuleWithDefaults() *NamespaceNetworkPolicyRule
NewNamespaceNetworkPolicyRuleWithDefaults instantiates a new NamespaceNetworkPolicyRule 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 *NamespaceNetworkPolicyRule) GetApiVersion() string
GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicyRule) 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 *NamespaceNetworkPolicyRule) SetApiVersion(v string)
SetApiVersion sets ApiVersion field to given value.
func (o *NamespaceNetworkPolicyRule) GetKind() string
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicyRule) 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 *NamespaceNetworkPolicyRule) SetKind(v string)
SetKind sets Kind field to given value.
func (o *NamespaceNetworkPolicyRule) GetMetadata() Metadata
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicyRule) 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 *NamespaceNetworkPolicyRule) SetMetadata(v Metadata)
SetMetadata sets Metadata field to given value.
func (o *NamespaceNetworkPolicyRule) GetSpec() NamespaceNetworkPolicyRuleSpec
GetSpec returns the Spec field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicyRule) GetSpecOk() (*NamespaceNetworkPolicyRuleSpec, 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 *NamespaceNetworkPolicyRule) SetSpec(v NamespaceNetworkPolicyRuleSpec)
SetSpec sets Spec field to given value.