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