| Name | Type | Description | Notes |
|---|---|---|---|
| Rules | Pointer to []ResourceNameAndVersionRef | Group of namespace policy rules | [optional] |
| Sharing | Pointer to SharingSpec | [optional] | |
| Version | Pointer to string | version of the namespace policy | [optional] |
func NewNamespaceNetworkPolicySpec() *NamespaceNetworkPolicySpec
NewNamespaceNetworkPolicySpec instantiates a new NamespaceNetworkPolicySpec 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 NewNamespaceNetworkPolicySpecWithDefaults() *NamespaceNetworkPolicySpec
NewNamespaceNetworkPolicySpecWithDefaults instantiates a new NamespaceNetworkPolicySpec 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 *NamespaceNetworkPolicySpec) GetRules() []ResourceNameAndVersionRef
GetRules returns the Rules field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicySpec) GetRulesOk() (*[]ResourceNameAndVersionRef, bool)
GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicySpec) SetRules(v []ResourceNameAndVersionRef)
SetRules sets Rules field to given value.
func (o *NamespaceNetworkPolicySpec) HasRules() bool
HasRules returns a boolean if a field has been set.
func (o *NamespaceNetworkPolicySpec) GetSharing() SharingSpec
GetSharing returns the Sharing field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicySpec) GetSharingOk() (*SharingSpec, bool)
GetSharingOk returns a tuple with the Sharing field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicySpec) SetSharing(v SharingSpec)
SetSharing sets Sharing field to given value.
func (o *NamespaceNetworkPolicySpec) HasSharing() bool
HasSharing returns a boolean if a field has been set.
func (o *NamespaceNetworkPolicySpec) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
func (o *NamespaceNetworkPolicySpec) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NamespaceNetworkPolicySpec) SetVersion(v string)
SetVersion sets Version field to given value.
func (o *NamespaceNetworkPolicySpec) HasVersion() bool
HasVersion returns a boolean if a field has been set.